mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 05:55:11 -05:00
Update booleanTriviaRule.ts
This commit is contained in:
@@ -18,10 +18,6 @@ function walk(ctx: Lint.WalkContext<void>): void {
|
||||
}
|
||||
|
||||
function checkCall(node: ts.CallExpression): void {
|
||||
if (!node.arguments) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const arg of node.arguments) {
|
||||
if (arg.kind !== ts.SyntaxKind.TrueKeyword && arg.kind !== ts.SyntaxKind.FalseKeyword) {
|
||||
continue;
|
||||
@@ -52,4 +48,4 @@ function walk(ctx: Lint.WalkContext<void>): void {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user