Skip to content

Commit fa70a18

Browse files
author
Andy Hanson
committed
Rename local variable arguments to args
1 parent 9c9b659 commit fa70a18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/utilities.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,16 +1411,16 @@ namespace ts {
14111411
if (callExpression.kind !== SyntaxKind.CallExpression) {
14121412
return false;
14131413
}
1414-
const { expression, arguments } = callExpression as CallExpression;
1414+
const { expression, arguments: args } = callExpression as CallExpression;
14151415

14161416
if (expression.kind !== SyntaxKind.Identifier || (expression as Identifier).text !== "require") {
14171417
return false;
14181418
}
14191419

1420-
if (arguments.length !== 1) {
1420+
if (args.length !== 1) {
14211421
return false;
14221422
}
1423-
const arg = arguments[0];
1423+
const arg = args[0];
14241424
return !checkArgumentIsStringLiteral || arg.kind === SyntaxKind.StringLiteral || arg.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
14251425
}
14261426

0 commit comments

Comments
 (0)