mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Use explicit undefined checkk
This commit is contained in:
parent
f4d4e89fa9
commit
146addc4d5
@ -23,7 +23,7 @@ namespace ts.codefix {
|
||||
else {
|
||||
const meaning = getMeaningFromLocation(node);
|
||||
const name = getTextOfNode(node);
|
||||
Debug.assert(!!name, "name should be defined");
|
||||
Debug.assert(name !== undefined, "name should be defined");
|
||||
suggestion = checker.getSuggestionForNonexistentSymbol(node, name, convertSemanticMeaningToSymbolFlags(meaning));
|
||||
}
|
||||
if (suggestion) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user