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 @@ -1411,16 +1411,16 @@ namespace ts {
1411
1411
if ( callExpression . kind !== SyntaxKind . CallExpression ) {
1412
1412
return false ;
1413
1413
}
1414
- const { expression, arguments } = callExpression as CallExpression ;
1414
+ const { expression, arguments : args } = callExpression as CallExpression ;
1415
1415
1416
1416
if ( expression . kind !== SyntaxKind . Identifier || ( expression as Identifier ) . text !== "require" ) {
1417
1417
return false ;
1418
1418
}
1419
1419
1420
- if ( arguments . length !== 1 ) {
1420
+ if ( args . length !== 1 ) {
1421
1421
return false ;
1422
1422
}
1423
- const arg = arguments [ 0 ] ;
1423
+ const arg = args [ 0 ] ;
1424
1424
return ! checkArgumentIsStringLiteral || arg . kind === SyntaxKind . StringLiteral || arg . kind === SyntaxKind . NoSubstitutionTemplateLiteral ;
1425
1425
}
1426
1426
You can’t perform that action at this time.
0 commit comments