From 614377c5501cb1666a3b057dd23c094d6d13ab24 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 4 Jun 2020 10:57:40 +0100 Subject: [PATCH] Review feedback: use one line. Signed-off-by: Tom Wilkie --- prometheus/promauto/auto_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prometheus/promauto/auto_test.go b/prometheus/promauto/auto_test.go index 5b9c7fe..e93817b 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() }