Some linter cleanup

This commit is contained in:
Gabe Kangas
2021-10-25 00:31:45 -07:00
parent 3f4176d8d6
commit bdce2e13bf
9 changed files with 48 additions and 14 deletions

View File

@ -52,7 +52,7 @@ func removeHighValue(values []float64) []float64 {
func avg(values []float64) float64 {
total := 0.0
for _, number := range values {
total = total + number
total += number
}
average := total / float64(len(values))
return average