Minor cleanups.

Change-Id: Ia8685d8439a421fe2143d9ec7120d5bb5ab88d78
This commit is contained in:
Julius Volz 2014-09-24 16:52:00 +02:00 committed by Bjoern Rabenstein
parent a746fbb8bc
commit 358f97791d
2 changed files with 2 additions and 2 deletions

View file

@ -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"
)

View file

@ -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)
}