golint fixes: if block ends with a return statement, so drop this else and outdent its block.

This commit is contained in:
Karsten Weiss 2017-05-14 12:54:52 +02:00
parent 732f839810
commit af358ec800
2 changed files with 2 additions and 4 deletions

View file

@ -34,7 +34,6 @@ func getLoad() ([]float64, error) {
samples := C.getloadavg(&loadavg[0], 3)
if samples > 0 {
return []float64{float64(loadavg[0]), float64(loadavg[1]), float64(loadavg[2])}, nil
} else {
}
return nil, errors.New("failed to get load average")
}
}

View file

@ -28,7 +28,6 @@ func getLoad() ([]float64, error) {
samples := C.getloadavg(&loadavg[0], 3)
if samples > 0 {
return []float64{float64(loadavg[0]), float64(loadavg[1]), float64(loadavg[2])}, nil
} else {
}
return nil, errors.New("failed to get load average")
}
}