Enable gofmt code simplification (#4887)
This commit is contained in:
committed by
Daniel Nelson
parent
4a311830c6
commit
ee056278f5
@@ -237,7 +237,7 @@ func (a *Accumulator) NFields() int {
|
||||
defer a.Unlock()
|
||||
counter := 0
|
||||
for _, pt := range a.Metrics {
|
||||
for _, _ = range pt.Fields {
|
||||
for range pt.Fields {
|
||||
counter++
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user