@@ -17,7 +17,7 @@ func Histogram(img image.Image) [256]float64 {
var total float64
if width == 0 || height == 0 {
- return histogram
+ return histogram
}
for y := 0; y < height; y++ {
@@ -36,7 +36,7 @@ func TestHistogram(t *testing.T) {
for _, val := range h {
if val != 0 {
t.Errorf("Histogram for an empty image should be a zero histogram.")
- return
+ return