mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
Housekeeping & Make ESLint Happy
This commit is contained in:
@@ -409,16 +409,16 @@ export class FileOutput {
|
||||
|
||||
this.strategiesWritten = true;
|
||||
|
||||
if (this.strategies.filter(not(false)).length === 0) {
|
||||
throw new Error('No strategies to write ' + this.id);
|
||||
}
|
||||
|
||||
// We use both DOMAIN-KEYWORD and whitelisted keyword to whitelist DOMAIN and DOMAIN-SUFFIX
|
||||
const kwfilter = createKeywordFilter(
|
||||
Array.from(this.domainKeywords)
|
||||
.concat(Array.from(this.whitelistKeywords))
|
||||
);
|
||||
|
||||
if (this.strategies.filter(not(false)).length === 0) {
|
||||
throw new Error('No strategies to write ' + this.id);
|
||||
}
|
||||
|
||||
const strategiesLen = this.strategies.length;
|
||||
|
||||
const domainEntries: Array<[domain: string, subdomain: boolean]> = [];
|
||||
|
||||
Reference in New Issue
Block a user