Skip to content

Commit

Permalink
Review feedback: use one line.
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wilkie <[email protected]>
  • Loading branch information
tomwilkie committed Jun 4, 2020
1 parent 8961609 commit 614377c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions prometheus/promauto/auto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 614377c

Please sign in to comment.