Skip to content

Commit

Permalink
Merge pull request #166 from rootulp/rp/err-uneven-chunks
Browse files Browse the repository at this point in the history
chore: use ErrUnevenChunks
  • Loading branch information
rootulp committed Jun 17, 2023
2 parents 6515446 + 2e59fba commit 1baa889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasquare.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func newDataSquare(data [][]byte, treeCreator TreeConstructorFn) (*dataSquare, e

for j := 0; j < width; j++ {
if squareRow[i][j] != nil && len(squareRow[i][j]) != chunkSize {
return nil, errors.New("all chunks must be of equal size")
return nil, ErrUnevenChunks
}
}
}
Expand Down

0 comments on commit 1baa889

Please sign in to comment.