mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
Minor cleanups.
Change-Id: Ia8685d8439a421fe2143d9ec7120d5bb5ab88d78
This commit is contained in:
parent
a746fbb8bc
commit
358f97791d
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue