metrics: fix issues reported by staticcheck (#20365)
This commit is contained in:
committed by
Felix Lange
parent
dd21f079e8
commit
58f2ce8671
@ -12,7 +12,7 @@ func TestRegistryMarshallJSON(t *testing.T) {
|
||||
r := NewRegistry()
|
||||
r.Register("counter", NewCounter())
|
||||
enc.Encode(r)
|
||||
if s := b.String(); "{\"counter\":{\"count\":0}}\n" != s {
|
||||
if s := b.String(); s != "{\"counter\":{\"count\":0}}\n" {
|
||||
t.Fatalf(s)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user