From fa70a182fe6ed169500d4d2ac4550a960f16c21e Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 3 Apr 2017 14:42:00 -0700 Subject: [PATCH] Rename local variable `arguments` to `args` --- src/compiler/utilities.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 5c6e519519b..7f2d35b60ed 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -1411,16 +1411,16 @@ namespace ts { if (callExpression.kind !== SyntaxKind.CallExpression) { return false; } - const { expression, arguments } = callExpression as CallExpression; + const { expression, arguments: args } = callExpression as CallExpression; if (expression.kind !== SyntaxKind.Identifier || (expression as Identifier).text !== "require") { return false; } - if (arguments.length !== 1) { + if (args.length !== 1) { return false; } - const arg = arguments[0]; + const arg = args[0]; return !checkArgumentIsStringLiteral || arg.kind === SyntaxKind.StringLiteral || arg.kind === SyntaxKind.NoSubstitutionTemplateLiteral; }