Revert some formatting changes.
This commit is contained in:
parent
889e5ac7ae
commit
c0146556e8
1 changed files with 8 additions and 8 deletions
|
@ -8467,11 +8467,11 @@ namespace ts {
|
|||
return type;
|
||||
}
|
||||
const doubleEquals = operator === SyntaxKind.EqualsEqualsToken || operator === SyntaxKind.ExclamationEqualsToken;
|
||||
const facts = doubleEquals
|
||||
? assumeTrue ? TypeFacts.EQUndefinedOrNull : TypeFacts.NEUndefinedOrNull
|
||||
: value.kind === SyntaxKind.NullKeyword
|
||||
? assumeTrue ? TypeFacts.EQNull : TypeFacts.NENull
|
||||
: assumeTrue ? TypeFacts.EQUndefined : TypeFacts.NEUndefined;
|
||||
const facts = doubleEquals ?
|
||||
assumeTrue ? TypeFacts.EQUndefinedOrNull : TypeFacts.NEUndefinedOrNull :
|
||||
value.kind === SyntaxKind.NullKeyword ?
|
||||
assumeTrue ? TypeFacts.EQNull : TypeFacts.NENull :
|
||||
assumeTrue ? TypeFacts.EQUndefined : TypeFacts.NEUndefined;
|
||||
return getTypeWithFacts(type, facts);
|
||||
}
|
||||
if (type.flags & TypeFlags.NotUnionOrUnit) {
|
||||
|
@ -8507,9 +8507,9 @@ namespace ts {
|
|||
return targetType;
|
||||
}
|
||||
}
|
||||
const facts = assumeTrue
|
||||
? typeofEQFacts[literal.text] || TypeFacts.TypeofEQHostObject
|
||||
: typeofNEFacts[literal.text] || TypeFacts.TypeofNEHostObject;
|
||||
const facts = assumeTrue ?
|
||||
typeofEQFacts[literal.text] || TypeFacts.TypeofEQHostObject :
|
||||
typeofNEFacts[literal.text] || TypeFacts.TypeofNEHostObject;
|
||||
return getTypeWithFacts(type, facts);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue