replace void 0 with undefined

This commit is contained in:
Rob Lourens
2018-12-28 13:15:41 -08:00
parent 0d11396538
commit ef2547d547
413 changed files with 1515 additions and 1515 deletions

View File

@@ -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);
});