metrics: linter nitpicks

This commit is contained in:
Martin Holst Swende 2023-09-01 11:15:56 +02:00
parent 9723df673d
commit 17765d22bb
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 0 additions and 2 deletions

View file

@ -23,7 +23,6 @@ func TestGaugeInfoJsonString(t *testing.T) {
if have, want := g.Snapshot().Value().String(), `{"value":"updated"}`; have != want {
t.Errorf("\nhave: %v\nwant: %v\n", have, want)
}
}
func TestGetOrRegisterGaugeInfo(t *testing.T) {

View file

@ -31,7 +31,6 @@ func BenchmarkCompute1000000(b *testing.B) {
for i := 0; i < len(s); i++ {
s[i] = int64(i)
sum += int64(i)
}
mean := float64(sum) / float64(len(s))
b.ResetTimer()