mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Use ?.forEach instead of ( || []).forEach
This commit is contained in:
@@ -72,6 +72,6 @@ export abstract class TypeScriptBaseCodeLensProvider implements vscode.CodeLensP
|
||||
results.push(range);
|
||||
}
|
||||
|
||||
(item.childItems || []).forEach(child => this.walkNavTree(document, child, item, results));
|
||||
item.childItems?.forEach(child => this.walkNavTree(document, child, item, results));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user