importFixes: Remove unnecessary undefined check (#19045)

This commit is contained in:
Andy
2017-10-09 13:39:15 -07:00
committed by GitHub
parent 9b51c33582
commit 8b60736b61

View File

@@ -16,7 +16,7 @@ namespace ts.codefix {
moduleSpecifier?: string;
}
enum ModuleSpecifierComparison {
const enum ModuleSpecifierComparison {
Better,
Equal,
Worse
@@ -26,10 +26,6 @@ namespace ts.codefix {
private symbolIdToActionMap: ImportCodeAction[][] = [];
addAction(symbolId: number, newAction: ImportCodeAction) {
if (!newAction) {
return;
}
const actions = this.symbolIdToActionMap[symbolId];
if (!actions) {
this.symbolIdToActionMap[symbolId] = [newAction];