Skip to content

Commit

Permalink
chore: hostRules resolvedHost simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 1, 2021
1 parent 5268736 commit 49272cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/host-rules.ts
Expand Up @@ -55,11 +55,11 @@ export interface HostRuleSearch {
}

function isEmptyRule(rule: HostRule): boolean {
return !rule.hostType && !rule.domainName && !rule.hostName && !rule.baseUrl;
return !rule.hostType && !rule.resolvedHost;
}

function isHostTypeRule(rule: HostRule): boolean {
return rule.hostType && !rule.domainName && !rule.hostName && !rule.baseUrl;
return rule.hostType && !rule.resolvedHost;
}

function isDomainNameRule(rule: HostRule): boolean {
Expand All @@ -75,7 +75,7 @@ function isBaseUrlRule(rule: HostRule): boolean {
}

function isMultiRule(rule: HostRule): boolean {
return rule.hostType && !!(rule.domainName || rule.hostName || rule.baseUrl);
return rule.hostType && !!rule.resolvedHost;
}

function matchesHostType(rule: HostRule, search: HostRuleSearch): boolean {
Expand Down

0 comments on commit 49272cc

Please sign in to comment.