Skip to content

Commit

Permalink
fix: linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
jlehtimaki committed Nov 14, 2023
1 parent 9f5fabb commit d1a2189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d1a2189

Please sign in to comment.