From 1256931aeeca28097db6708f7c027292e3589aa9 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 16 Feb 2021 22:05:00 +0200 Subject: [PATCH] lib/httpserver: make errcheck happy --- lib/httpserver/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/httpserver/metrics.go b/lib/httpserver/metrics.go index a6a2a7bf0..281bd0ba2 100644 --- a/lib/httpserver/metrics.go +++ b/lib/httpserver/metrics.go @@ -32,7 +32,7 @@ func WritePrometheusMetrics(w io.Writer) { metricsCacheLock.Unlock() bb := metricsCache.Load().(*bytesutil.ByteBuffer) - w.Write(bb.B) + _, _ = w.Write(bb.B) } var (