Skip to content

Commit

Permalink
Don't try to find refs to empty string in findInternalReferences (f…
Browse files Browse the repository at this point in the history
…ixes #800)
  • Loading branch information
webpro committed Oct 4, 2024
1 parent 0749921 commit d9ae5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/typescript/find-internal-references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const findInternalReferences = (
typeChecker: ts.TypeChecker,
referencedSymbolsInExportedTypes: Set<ts.Symbol>
): [number, boolean] => {
if (!item.symbol) return [0, false];
if (!item.symbol || item.identifier === '') return [0, false];

if (item.symbol.flags & ts.SymbolFlags.AliasExcludes) return [1, false];

Expand Down

0 comments on commit d9ae5dc

Please sign in to comment.