Fix Reject Process

This commit is contained in:
SukkaW
2024-08-05 11:28:21 +08:00
parent 7905ec447f
commit dc4d978c8a
4 changed files with 36 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ export const buildRejectDomainSet = task(require.main === module, __filename)(as
DOMAIN_LISTS_EXTRA.map(entry => processDomainLists(childSpan, ...entry).then(appendArrayToDomainSetsExtra)),
ADGUARD_FILTERS.map(
input => processFilterRules(childSpan, ...input)
entry => processFilterRules(childSpan, ...entry)
.then(({ white, black, foundDebugDomain }) => {
if (foundDebugDomain) {
// eslint-disable-next-line sukka/no-single-return -- not single return
@@ -58,7 +58,7 @@ export const buildRejectDomainSet = task(require.main === module, __filename)(as
})
),
ADGUARD_FILTERS_EXTRA.map(
input => processFilterRules(childSpan, ...input)
entry => processFilterRules(childSpan, ...entry)
.then(({ white, black, foundDebugDomain }) => {
if (foundDebugDomain) {
// eslint-disable-next-line sukka/no-single-return -- not single return