mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Fix golint warning in labels.go (#6839)
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
parent
a188b1e91b
commit
14182c1420
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue