From d1a2189f1188cf10d3f4a8ab6cd67baab2c5451f Mon Sep 17 00:00:00 2001 From: Joonas Lehtimaki Date: Tue, 14 Nov 2023 16:27:05 +0200 Subject: [PATCH] fix: linting error --- pkg/collector/collector.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/collector/collector.go b/pkg/collector/collector.go index 9835fee..fcf4043 100644 --- a/pkg/collector/collector.go +++ b/pkg/collector/collector.go @@ -220,9 +220,10 @@ func (wb WalletBalanceCollector) Collect(ch chan<- prometheus.Metric) { func getDiscordIDs(ops []config.Operator) string { var ids []string - for _, op := range ops { - pattern := regexp.MustCompile(`^\d+$`) + pattern := regexp.MustCompile(`^\d+$`) + + for _, op := range ops { if pattern.MatchString(op.Discord.ID) { ids = append(ids, op.Discord.ID) }