diff --git a/notification/notification.go b/notification/notification.go index cf9d285ef..6bb7c2658 100644 --- a/notification/notification.go +++ b/notification/notification.go @@ -23,9 +23,9 @@ import ( "time" "github.com/golang/glog" + "github.com/prometheus/client_golang/prometheus" clientmodel "github.com/prometheus/client_golang/model" - "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/prometheus/utility" ) diff --git a/rules/ast/functions.go b/rules/ast/functions.go index 562703f74..9568efe5c 100644 --- a/rules/ast/functions.go +++ b/rules/ast/functions.go @@ -275,7 +275,7 @@ func dropCommonLabelsImpl(timestamp clientmodel.Timestamp, args []Node) interfac } for _, el := range vector { - for k, _ := range el.Metric { + for k := range el.Metric { if _, ok := common[k]; ok { delete(el.Metric, k) }