mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
replace void 0 with undefined
This commit is contained in:
@@ -840,7 +840,7 @@ class FoldingProviderAdapter {
|
||||
const doc = this._documents.getDocumentData(resource).document;
|
||||
return asPromise(() => this._provider.provideFoldingRanges(doc, context, token)).then(ranges => {
|
||||
if (!Array.isArray(ranges)) {
|
||||
return void 0;
|
||||
return undefined;
|
||||
}
|
||||
return ranges.map(typeConvert.FoldingRange.from);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user