Skip to content

Commit

Permalink
chore: use ErrUnevenChunks
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Jun 16, 2023
1 parent 0153b50 commit 2e59fba
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 @@ -47,7 +47,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 2e59fba

Please sign in to comment.