Remove extra conditional

This should always be true
This commit is contained in:
Matt Bierner
2018-11-19 18:41:26 -08:00
parent f953906c74
commit 1f1618d280

View File

@@ -106,10 +106,6 @@ export abstract class TypeScriptBaseCodeLensProvider implements vscode.CodeLensP
(item.childItems || []).forEach(child => this.walkNavTree(document, child, item, results));
}
protected getSymbolRange(document: vscode.TextDocument, item: Proto.NavigationTree): vscode.Range | null {
if (!item) {
return null;
}
// TS 3.0+ provides a span for just the symbol
if (item.nameSpan) {
return typeConverters.Range.fromTextSpan(item.nameSpan);