Update Rules

This commit is contained in:
SukkaW
2022-02-20 23:48:35 +08:00
parent ae45b74893
commit b01b018459
3 changed files with 69 additions and 3 deletions

View File

@@ -245,7 +245,7 @@ async function processFilterRules(filterRulesUrl) {
(await Promise.all(
Array.from(domainSets).reduce((result, element, index) => {
const chunk = index % threads;
result[chunk] = result[chunk] ?? [];
result[chunk] ??= [];
result[chunk].push(element);
return result;