Browse Source

Fix golint issue in labels.go (#7730)

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
pull/7733/head
Guangwen Feng 4 years ago committed by GitHub
parent
commit
e6f2b8ad60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/labels/labels.go

2
pkg/labels/labels.go

@ -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…
Cancel
Save