From 49272cc003af07929458b4a4720d98f8a8a5b35c Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Sat, 1 May 2021 23:30:24 +0200 Subject: [PATCH] chore: hostRules resolvedHost simplification --- lib/util/host-rules.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util/host-rules.ts b/lib/util/host-rules.ts index 20e6e1a934b28e..69fef706e2bc39 100644 --- a/lib/util/host-rules.ts +++ b/lib/util/host-rules.ts @@ -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 { @@ -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 {