Enable gofmt code simplification (#4887)
This commit is contained in:
committed by
Daniel Nelson
parent
4a311830c6
commit
ee056278f5
@@ -405,7 +405,7 @@ func (t *TopK) getAggregationFunction(aggOperation string) (func([]telegraf.Metr
|
||||
}
|
||||
// Divide by the number of recorded measurements collected for every field
|
||||
noMeasurementsFound := true // Canary to check if no field with values was found, so we can return nil
|
||||
for k, _ := range mean {
|
||||
for k := range mean {
|
||||
if meanCounters[k] == 0 {
|
||||
mean[k] = 0
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user