mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Simplify returns
This commit is contained in:
1 parent
ef1cd50dfc
commit
2118de09e7
1 file changed
+2
-4
@@ -643,13 +643,11 @@ namespace ts {
|
||||
// there is an old program, check if we can reuse its structure
|
||||
const oldRootNames = oldProgram.getRootFileNames();
|
||||
if (!arrayIsEqualTo(oldRootNames, rootNames)) {
|
||||
oldProgram.structureIsReused = StructureIsReused.Not;
|
||||
return StructureIsReused.Not;
|
||||
return oldProgram.structureIsReused = StructureIsReused.Not;
|
||||
}
|
||||
|
||||
if (!arrayIsEqualTo(options.types, oldOptions.types)) {
|
||||
oldProgram.structureIsReused = StructureIsReused.Not;
|
||||
return StructureIsReused.Not;
|
||||
return oldProgram.structureIsReused = StructureIsReused.Not;
|
||||
}
|
||||
|
||||
// check if program source files has changed in the way that can affect structure of the program
|
||||
|
||||
Reference in new issue
Block a user