File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -8467,11 +8467,11 @@ namespace ts {
8467
8467
return type;
8468
8468
}
8469
8469
const doubleEquals = operator === SyntaxKind.EqualsEqualsToken || operator === SyntaxKind.ExclamationEqualsToken;
8470
- const facts = doubleEquals
8471
- ? assumeTrue ? TypeFacts.EQUndefinedOrNull : TypeFacts.NEUndefinedOrNull
8472
- : value.kind === SyntaxKind.NullKeyword
8473
- ? assumeTrue ? TypeFacts.EQNull : TypeFacts.NENull
8474
- : assumeTrue ? TypeFacts.EQUndefined : TypeFacts.NEUndefined;
8470
+ const facts = doubleEquals ?
8471
+ assumeTrue ? TypeFacts.EQUndefinedOrNull : TypeFacts.NEUndefinedOrNull :
8472
+ value.kind === SyntaxKind.NullKeyword ?
8473
+ assumeTrue ? TypeFacts.EQNull : TypeFacts.NENull :
8474
+ assumeTrue ? TypeFacts.EQUndefined : TypeFacts.NEUndefined;
8475
8475
return getTypeWithFacts(type, facts);
8476
8476
}
8477
8477
if (type.flags & TypeFlags.NotUnionOrUnit) {
@@ -8507,9 +8507,9 @@ namespace ts {
8507
8507
return targetType;
8508
8508
}
8509
8509
}
8510
- const facts = assumeTrue
8511
- ? typeofEQFacts[literal.text] || TypeFacts.TypeofEQHostObject
8512
- : typeofNEFacts[literal.text] || TypeFacts.TypeofNEHostObject;
8510
+ const facts = assumeTrue ?
8511
+ typeofEQFacts[literal.text] || TypeFacts.TypeofEQHostObject :
8512
+ typeofNEFacts[literal.text] || TypeFacts.TypeofNEHostObject;
8513
8513
return getTypeWithFacts(type, facts);
8514
8514
}
8515
8515
You can’t perform that action at this time.
0 commit comments