Skip to content

Commit 40393c5

Browse files
Update booleanTriviaRule.ts
1 parent a1be5a4 commit 40393c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

scripts/tslint/booleanTriviaRule.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ function walk(ctx: Lint.WalkContext<void>): void {
1818
}
1919

2020
function checkCall(node: ts.CallExpression): void {
21-
if (!node.arguments) {
22-
return;
23-
}
24-
2521
for (const arg of node.arguments) {
2622
if (arg.kind !== ts.SyntaxKind.TrueKeyword && arg.kind !== ts.SyntaxKind.FalseKeyword) {
2723
continue;
@@ -52,4 +48,4 @@ function walk(ctx: Lint.WalkContext<void>): void {
5248
}
5349
}
5450
}
55-
}
51+
}

0 commit comments

Comments
 (0)