From 93904954f4cf7cc8bbfa751ca8ba44355c50087c Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Thu, 4 Oct 2018 21:37:20 +0200 Subject: [PATCH] Lint-fix: Dead code. Fixes bug with IIS app white/blacklisting --- collector/iis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/iis.go b/collector/iis.go index 148e2d15..c723775d 100644 --- a/collector/iis.go +++ b/collector/iis.go @@ -802,8 +802,8 @@ func NewIISCollector() (Collector, error) { nil, ), - appWhitelistPattern: regexp.MustCompile(fmt.Sprintf("^(?:%s)$", *siteWhitelist)), - appBlacklistPattern: regexp.MustCompile(fmt.Sprintf("^(?:%s)$", *siteBlacklist)), + appWhitelistPattern: regexp.MustCompile(fmt.Sprintf("^(?:%s)$", *appWhitelist)), + appBlacklistPattern: regexp.MustCompile(fmt.Sprintf("^(?:%s)$", *appBlacklist)), } buildIIS.iis_version = getIISVersion()