You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-11-22 11:02:36 +03:00
Fix issues identified by the gometalinters.
This commit is contained in:
@@ -186,7 +186,7 @@ func (s *PgSettingSuite) TestMetric(c *C) {
|
||||
for _, f := range fixtures {
|
||||
d := &dto.Metric{}
|
||||
m := f.p.metric()
|
||||
m.Write(d)
|
||||
m.Write(d) // nolint: errcheck
|
||||
|
||||
c.Check(m.Desc().String(), Equals, f.d)
|
||||
c.Check(d.GetGauge().GetValue(), Equals, f.v)
|
||||
|
||||
Reference in New Issue
Block a user