From 54b4d2740a4f7722e674f12796fc2fc860a5a3cb Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 7 Jul 2020 15:10:24 -0700 Subject: [PATCH] Remove unnecessary assert This assert made no sense sine we donot use the value from existing structureIsUsed at all Fixes #36718 --- src/compiler/program.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 006ef6475834a..35c540fa14fa6 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -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)) {