Fixing two more cases for promises in conditionals

This commit is contained in:
Matt Bierner
2021-02-26 17:38:37 -08:00
parent 3feb2ece1e
commit 1f567e10f3
2 changed files with 2 additions and 4 deletions

View File

@@ -65,9 +65,7 @@ function getLanguageServiceHost(scriptKind: ts.ScriptKind) {
return compilerOptions;
},
dispose() {
if (jsLanguageService) {
jsLanguageService.then(s => s.dispose());
}
jsLanguageService.then(s => s.dispose());
}
};
}