From 3c23fa134366ed559c8fde940321726a9304f47a Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sun, 15 Dec 2024 17:51:29 +0300 Subject: [PATCH] fixup lint Signed-off-by: Vasiliy Tolstov --- prometheus_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus_test.go b/prometheus_test.go index 2b8f4eb..2ef2ab6 100644 --- a/prometheus_test.go +++ b/prometheus_test.go @@ -65,7 +65,7 @@ func TestHistogram(t *testing.T) { p.Observe(10) p.Observe(30) mdto := &dto.Metric{} - p.Write(mdto) + _ = p.Write(mdto) pbuf := bytes.NewBuffer(nil) enc := expfmt.NewEncoder(pbuf, expfmt.NewFormat(expfmt.TypeTextPlain)) mf := &dto.MetricFamily{Name: &name, Type: dto.MetricType_HISTOGRAM.Enum(), Metric: []*dto.Metric{mdto}}