From a499de45cc937b9f13d44b87d1e9b5f9b1d6e36f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 9 Aug 2020 13:06:44 +0300 Subject: [PATCH] lib/promscrape: make errcheck happy --- lib/promscrape/scrapework.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/promscrape/scrapework.go b/lib/promscrape/scrapework.go index e096d8e6e..663e4968a 100644 --- a/lib/promscrape/scrapework.go +++ b/lib/promscrape/scrapework.go @@ -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() }