diff --git a/model/labels/labels.go b/model/labels/labels.go index aafba218a..103e8e5c3 100644 --- a/model/labels/labels.go +++ b/model/labels/labels.go @@ -357,9 +357,7 @@ func EmptyLabels() Labels { // The caller has to guarantee that all label names are unique. func New(ls ...Label) Labels { set := make(Labels, 0, len(ls)) - for _, l := range ls { - set = append(set, l) - } + set = append(set, ls...) sort.Sort(set) return set