lib/promscrape: make errcheck happy

This commit is contained in:
Aliaksandr Valialkin 2020-08-09 13:06:44 +03:00
parent 23c9e6b727
commit a499de45cc

View file

@ -278,8 +278,8 @@ func getLabelsHash(lh *xxhash.Digest, labels []prompbmarshal.Label) uint64 {
// since the accuracy for `scrape_series_added` metric may be lower than 100%.
lh.Reset()
for _, label := range labels {
lh.WriteString(label.Name)
lh.WriteString(label.Value)
_, _ = lh.WriteString(label.Name)
_, _ = lh.WriteString(label.Value)
}
return lh.Sum64()
}