Skip to content

Commit 09f78d3

Browse files
committed
Don't use concat()
1 parent c01edb3 commit 09f78d3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

denops/ddc/ext.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,11 +341,12 @@ export async function onEvent(
341341
],
342342
);
343343

344-
filters = filters.concat(
345-
o.matchers,
346-
o.sorters,
347-
o.converters,
348-
);
344+
filters = [
345+
...filters,
346+
...o.matchers,
347+
...o.sorters,
348+
...o.converters,
349+
];
349350
}
350351

351352
for (const userSource of options.sources) {
@@ -372,7 +373,7 @@ export async function onEvent(
372373

373374
// Uniq.
374375
filters = [
375-
...new Set(filters.concat(options.postFilters)),
376+
...new Set([...filters, ...options.postFilters]),
376377
];
377378

378379
for (const userFilter of filters) {

0 commit comments

Comments
 (0)