Skip to content

Commit 2efd552

Browse files
committed
Simplify slice init to fix lint warning
1 parent bb11ac5 commit 2efd552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ func Encode(xComponents, yComponents int, img image.Image) (hash string, err err
3535
}
3636

3737
// vector of yComponents*xComponents*(RGB)
38-
factors := make([][][3]float64, yComponents, yComponents)
38+
factors := make([][][3]float64, yComponents)
3939
for y := 0; y < yComponents; y++ {
40-
factors[y] = make([][3]float64, xComponents, xComponents)
40+
factors[y] = make([][3]float64, xComponents)
4141
for x := 0; x < xComponents; x++ {
4242
factor := multiplyBasisFunction(x, y, img)
4343
factors[y][x][0] = factor[0]

0 commit comments

Comments
 (0)