Fix golint warning in labels.go (#6839)

Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
Guangwen Feng 2020-02-19 14:25:44 +08:00 committed by GitHub
parent a188b1e91b
commit 14182c1420
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,7 +200,7 @@ func (ls Labels) Has(name string) bool {
return false
}
// HasDuplicateLabels returns whether ls has duplicate label names.
// HasDuplicateLabelNames returns whether ls has duplicate label names.
// It assumes that the labelset is sorted.
func (ls Labels) HasDuplicateLabelNames() (string, bool) {
for i, l := range ls {