Concat instead of reduce
This commit is contained in:
parent
00a276cf8c
commit
61fa6e8f5d
1 changed files with 1 additions and 3 deletions
|
@ -179,9 +179,7 @@ export class OpenAnythingHandler extends QuickOpenHandler {
|
|||
}
|
||||
|
||||
// Combine results.
|
||||
const mergedResults: QuickOpenEntry[] = results.reduce((entries: QuickOpenEntry[], model: QuickOpenModel) => {
|
||||
return entries.concat(model.entries);
|
||||
}, []);
|
||||
const mergedResults = [].concat(...results.map(r => r.entries));
|
||||
|
||||
// Sort
|
||||
const unsortedResultTime = Date.now();
|
||||
|
|
Loading…
Reference in a new issue