Skip to content

Commit f8b11fb

Browse files
author
Sam El-Husseini
committed
minor changes from PR feedback
1 parent 72c5c2b commit f8b11fb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/services/completions.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,7 @@ namespace ts.Completions {
746746
// We don't need to perform character checks here because we're only comparing the
747747
// name against 'entryName' (which is known to be good), not building a new
748748
// completion entry.
749-
const symbol = forEach(symbols, s => getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, /*performCharacterChecks*/ false, location) === entryName ? s : undefined);
750-
751-
if (symbol) {
752-
return symbol;
753-
}
749+
return forEach(symbols, s => getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, /*performCharacterChecks*/ false, location) === entryName ? s : undefined);
754750
}
755751

756752
return undefined;

0 commit comments

Comments
 (0)