Skip to content

Commit ee5b933

Browse files
committed
revert redundant changes
1 parent ccb9d5e commit ee5b933

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/codefixes/helpers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ export function tryGetAutoImportableReferenceFromTypeNode(importTypeNode: TypeNo
905905
// it can't refer to reserved internal symbol names and such
906906
return visitEachChild(node, visit, /*context*/ undefined);
907907
}
908-
const name = firstIdentifier.symbol && getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
909-
const qualifier = name && name !== firstIdentifier.text
908+
const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
909+
const qualifier = name !== firstIdentifier.text
910910
? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name))
911911
: node.qualifier;
912912

0 commit comments

Comments
 (0)