minor changes from PR feedback
This commit is contained in:
parent
72c5c2b088
commit
f8b11fb487
1 changed files with 1 additions and 5 deletions
|
@ -746,11 +746,7 @@ namespace ts.Completions {
|
|||
// We don't need to perform character checks here because we're only comparing the
|
||||
// name against 'entryName' (which is known to be good), not building a new
|
||||
// completion entry.
|
||||
const symbol = forEach(symbols, s => getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, /*performCharacterChecks*/ false, location) === entryName ? s : undefined);
|
||||
|
||||
if (symbol) {
|
||||
return symbol;
|
||||
}
|
||||
return forEach(symbols, s => getCompletionEntryDisplayNameForSymbol(typeChecker, s, compilerOptions.target, /*performCharacterChecks*/ false, location) === entryName ? s : undefined);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in a new issue