From 831b8986deb68680611299d40b1f4c39baba310e Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Wed, 15 Feb 2023 10:03:21 +0100 Subject: [PATCH] Remove unnecessary TrailingComma As of Go 1.2(!) this is always the case. Silences a linter warning. Signed-off-by: Matthias Rampke --- haproxy_exporter.go | 1 - 1 file changed, 1 deletion(-) diff --git a/haproxy_exporter.go b/haproxy_exporter.go index fca9be5..c6bdb8c 100644 --- a/haproxy_exporter.go +++ b/haproxy_exporter.go @@ -413,7 +413,6 @@ func (e *Exporter) scrape(ch chan<- prometheus.Metric) (up float64) { defer body.Close() reader := csv.NewReader(body) - reader.TrailingComma = true reader.Comment = '#' loop: