File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1352,16 +1352,16 @@ namespace ts {
1352
1352
if ( callExpression . kind !== SyntaxKind . CallExpression ) {
1353
1353
return false ;
1354
1354
}
1355
- const { expression, arguments } = callExpression as CallExpression ;
1355
+ const { expression, arguments : args } = callExpression as CallExpression ;
1356
1356
1357
1357
if ( expression . kind !== SyntaxKind . Identifier || ( expression as Identifier ) . text !== "require" ) {
1358
1358
return false ;
1359
1359
}
1360
1360
1361
- if ( arguments . length !== 1 ) {
1361
+ if ( args . length !== 1 ) {
1362
1362
return false ;
1363
1363
}
1364
- const arg = arguments [ 0 ] ;
1364
+ const arg = args [ 0 ] ;
1365
1365
return ! checkArgumentIsStringLiteral || arg . kind === SyntaxKind . StringLiteral || arg . kind === SyntaxKind . NoSubstitutionTemplateLiteral ;
1366
1366
}
1367
1367
You can’t perform that action at this time.
0 commit comments