Skip to content

Commit

Permalink
revert redundant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 6, 2024
1 parent ccb9d5e commit ee5b933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/codefixes/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,8 @@ export function tryGetAutoImportableReferenceFromTypeNode(importTypeNode: TypeNo
// it can't refer to reserved internal symbol names and such
return visitEachChild(node, visit, /*context*/ undefined);
}
const name = firstIdentifier.symbol && getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
const qualifier = name && name !== firstIdentifier.text
const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
const qualifier = name !== firstIdentifier.text
? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name))
: node.qualifier;

Expand Down

0 comments on commit ee5b933

Please sign in to comment.