diff --git a/prometheus/promauto/auto_test.go b/prometheus/promauto/auto_test.go index 5b9c7fec3..e93817b8e 100644 --- a/prometheus/promauto/auto_test.go +++ b/prometheus/promauto/auto_test.go @@ -22,8 +22,6 @@ import ( func TestWrapNil(t *testing.T) { // A nil registerer should be treated as a no-op by promauto, even when wrapped. registerer := prometheus.WrapRegistererWith(prometheus.Labels{"foo": "bar"}, nil) - c := With(registerer).NewCounter(prometheus.CounterOpts{ - Name: "test", - }) + c := With(registerer).NewCounter(prometheus.CounterOpts{Name: "test"}) c.Inc() }