Skip to content

Commit 614377c

Browse files
committed
Review feedback: use one line.
Signed-off-by: Tom Wilkie <[email protected]>
1 parent 8961609 commit 614377c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

prometheus/promauto/auto_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import (
2222
func TestWrapNil(t *testing.T) {
2323
// A nil registerer should be treated as a no-op by promauto, even when wrapped.
2424
registerer := prometheus.WrapRegistererWith(prometheus.Labels{"foo": "bar"}, nil)
25-
c := With(registerer).NewCounter(prometheus.CounterOpts{
26-
Name: "test",
27-
})
25+
c := With(registerer).NewCounter(prometheus.CounterOpts{Name: "test"})
2826
c.Inc()
2927
}

0 commit comments

Comments
 (0)