File tree 1 file changed +3
-12
lines changed 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -18802,18 +18802,9 @@ namespace ts {
18802
18802
18803
18803
function isFalseExpression(expr: Expression): boolean {
18804
18804
const node = skipParentheses(expr);
18805
- if (node.kind === SyntaxKind.FalseKeyword) {
18806
- return true;
18807
- }
18808
- if (node.kind === SyntaxKind.BinaryExpression) {
18809
- if ((<BinaryExpression>node).operatorToken.kind === SyntaxKind.AmpersandAmpersandToken) {
18810
- return isFalseExpression((<BinaryExpression>node).left) || isFalseExpression((<BinaryExpression>node).right);
18811
- }
18812
- if ((<BinaryExpression>node).operatorToken.kind === SyntaxKind.BarBarToken) {
18813
- return isFalseExpression((<BinaryExpression>node).left) && isFalseExpression((<BinaryExpression>node).right);
18814
- }
18815
- }
18816
- return false;
18805
+ return node.kind === SyntaxKind.FalseKeyword || node.kind === SyntaxKind.BinaryExpression && (
18806
+ (<BinaryExpression>node).operatorToken.kind === SyntaxKind.AmpersandAmpersandToken && (isFalseExpression((<BinaryExpression>node).left) || isFalseExpression((<BinaryExpression>node).right)) ||
18807
+ (<BinaryExpression>node).operatorToken.kind === SyntaxKind.BarBarToken && isFalseExpression((<BinaryExpression>node).left) && isFalseExpression((<BinaryExpression>node).right));
18817
18808
}
18818
18809
18819
18810
function isReachableFlowNodeWorker(flow: FlowNode, noCacheCheck: boolean): boolean {
You can’t perform that action at this time.
0 commit comments