mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Remove unnecessary check that type is ObjectType (#17418)
This commit is contained in:
parent
a46d6bde97
commit
3deb39bba6
@ -3420,9 +3420,7 @@ namespace ts {
|
||||
if (!symbolStack) {
|
||||
symbolStack = [];
|
||||
}
|
||||
const isConstructorObject = type.flags & TypeFlags.Object &&
|
||||
getObjectFlags(type) & ObjectFlags.Anonymous &&
|
||||
type.symbol && type.symbol.flags & SymbolFlags.Class;
|
||||
const isConstructorObject = type.objectFlags & ObjectFlags.Anonymous && type.symbol && type.symbol.flags & SymbolFlags.Class;
|
||||
if (isConstructorObject) {
|
||||
writeLiteralType(type, flags);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user