Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Remove unnecessary TrailingComma
Browse files Browse the repository at this point in the history
As of Go 1.2(!) this is always the case. Silences a linter warning.

Signed-off-by: Matthias Rampke <[email protected]>
  • Loading branch information
matthiasr committed Feb 15, 2023
1 parent 1d593e2 commit 831b898
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion haproxy_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 831b898

Please sign in to comment.