Skip to content

Commit b3eaef1

Browse files
committed
fix linter issues
1 parent 3661b66 commit b3eaef1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/compiler/utilities.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,10 +1089,11 @@ namespace ts {
10891089
export function isRequireCall(expression: Node, checkArgumentIsStringLiteral: boolean): expression is CallExpression {
10901090
// of the form 'require("name")'
10911091
const isRequire = expression.kind === SyntaxKind.CallExpression &&
1092-
(<CallExpression>expression).expression.kind === SyntaxKind.Identifier &&
1093-
(<Identifier>(<CallExpression>expression).expression).text === "require" &&
1094-
(<CallExpression>expression).arguments.length === 1;
1095-
return isRequire && (!checkArgumentIsStringLiteral || (<CallExpression>expression).arguments[0].kind === SyntaxKind.StringLiteral);
1092+
(<CallExpression>expression).expression.kind === SyntaxKind.Identifier &&
1093+
(<Identifier>(<CallExpression>expression).expression).text === "require" &&
1094+
(<CallExpression>expression).arguments.length === 1;
1095+
1096+
return isRequire && (!checkArgumentIsStringLiteral || (<CallExpression>expression).arguments[0].kind === SyntaxKind.StringLiteral);
10961097
}
10971098

10981099
/// Given a BinaryExpression, returns SpecialPropertyAssignmentKind for the various kinds of property

0 commit comments

Comments
 (0)