mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
importFixes: Remove unnecessary undefined check (#19045)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user