mirror of
https://github.com/prometheus/prometheus
synced 2025-01-12 18:01:36 +00:00
Fix golint issue in labels.go (#7730)
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
parent
ac677ed8b3
commit
e6f2b8ad60
@ -208,7 +208,7 @@ func (ls Labels) WithLabels(names ...string) Labels {
|
||||
return ret
|
||||
}
|
||||
|
||||
// WithLabels returns a new labels.Labels from ls that contains labels not matching names.
|
||||
// WithoutLabels returns a new labels.Labels from ls that contains labels not matching names.
|
||||
// 'names' have to be sorted in ascending order.
|
||||
func (ls Labels) WithoutLabels(names ...string) Labels {
|
||||
ret := make([]Label, 0, len(ls))
|
||||
|
Loading…
Reference in New Issue
Block a user