Skip to content

Commit

Permalink
Remove unused regex
Browse files Browse the repository at this point in the history
  • Loading branch information
oxplot committed May 3, 2020
1 parent 13c47b4 commit 6e6113e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/metrics/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"log"
"path/filepath"
"regexp"
"strconv"

"github.com/eclipse/paho.mqtt.golang"
Expand All @@ -19,8 +18,6 @@ type Ingest struct {
MessageMetric *prometheus.CounterVec
}

var validNumber = regexp.MustCompile(`^[0-9.]+$`)

func NewIngest(collector Collector, metrics []config.MetricConfig) *Ingest {
valid := make(map[string]config.MetricConfig)
for i := range metrics {
Expand Down

0 comments on commit 6e6113e

Please sign in to comment.