Review feedback: use one line.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie 2020-06-04 10:57:40 +01:00
parent 8961609f91
commit 614377c550
1 changed files with 1 additions and 3 deletions

View File

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