Remove unnecessary assert (#39483)

This assert made no sense sine we donot use the value from existing structureIsUsed at all
Fixes #36718
This commit is contained in:
Sheetal Nandi
2020-07-08 11:02:07 -07:00
committed by GitHub
parent a101935d34
commit 305c58b03a

View File

@@ -1236,8 +1236,6 @@ namespace ts {
return oldProgram.structureIsReused = StructureIsReused.Not;
}
Debug.assert(!(oldProgram.structureIsReused! & (StructureIsReused.Completely | StructureIsReused.SafeModules)));
// there is an old program, check if we can reuse its structure
const oldRootNames = oldProgram.getRootFileNames();
if (!arrayIsEqualTo(oldRootNames, rootNames)) {