Skip to content

Commit bb8862f

Browse files
author
Andy
authored
Merge pull request #14996 from Microsoft/args
Rename local variable `arguments` to `args`
2 parents 8941e5f + fa70a18 commit bb8862f

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
@@ -1352,16 +1352,16 @@ namespace ts {
13521352
if (callExpression.kind !== SyntaxKind.CallExpression) {
13531353
return false;
13541354
}
1355-
const { expression, arguments } = callExpression as CallExpression;
1355+
const { expression, arguments: args } = callExpression as CallExpression;
13561356

13571357
if (expression.kind !== SyntaxKind.Identifier || (expression as Identifier).text !== "require") {
13581358
return false;
13591359
}
13601360

1361-
if (arguments.length !== 1) {
1361+
if (args.length !== 1) {
13621362
return false;
13631363
}
1364-
const arg = arguments[0];
1364+
const arg = args[0];
13651365
return !checkArgumentIsStringLiteral || arg.kind === SyntaxKind.StringLiteral || arg.kind === SyntaxKind.NoSubstitutionTemplateLiteral;
13661366
}
13671367

0 commit comments

Comments
 (0)