Skip to content

Commit 5b652b4

Browse files
ahejlsbergAndy Hanson
authored andcommitted
Remove pointless check
1 parent ad3d38c commit 5b652b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17818,9 +17818,7 @@ namespace ts {
1781817818
if (inDestructuringPattern) {
1781917819
result.pattern = node;
1782017820
}
17821-
if (!(result.flags & TypeFlags.Nullable)) {
17822-
propagatedFlags |= (result.flags & TypeFlags.PropagatingFlags);
17823-
}
17821+
propagatedFlags |= (result.flags & TypeFlags.PropagatingFlags);
1782417822
return result;
1782517823
}
1782617824
}

0 commit comments

Comments
 (0)