Skip to content

Commit 305c58b

Browse files
authored
Remove unnecessary assert (#39483)
This assert made no sense sine we donot use the value from existing structureIsUsed at all Fixes #36718
1 parent a101935 commit 305c58b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/compiler/program.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,8 +1236,6 @@ namespace ts {
12361236
return oldProgram.structureIsReused = StructureIsReused.Not;
12371237
}
12381238

1239-
Debug.assert(!(oldProgram.structureIsReused! & (StructureIsReused.Completely | StructureIsReused.SafeModules)));
1240-
12411239
// there is an old program, check if we can reuse its structure
12421240
const oldRootNames = oldProgram.getRootFileNames();
12431241
if (!arrayIsEqualTo(oldRootNames, rootNames)) {

0 commit comments

Comments
 (0)