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) {
// 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()
}