forked from mirror/client_golang
Review feedback: use one line.
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
parent
8961609f91
commit
614377c550
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue