Skip to content

Commit a71c6b5

Browse files
authored
refactor: return byzErr for clarity (#351)
Closes #350 This code change is strictly for clarity and it should behave identically to before. These tests still pass: 1. https://github.com/rootulp/rsmt2d/blob/fe785dafe00a1cc6cbdd346be1bd01fd193f758e/extendeddatacrossword_test.go#L185 2. https://github.com/rootulp/rsmt2d/blob/fe785dafe00a1cc6cbdd346be1bd01fd193f758e/extendeddatacrossword_test.go#L346 cc: @odeke-em
1 parent 5ee2e0a commit a71c6b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extendeddatacrossword.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ func (eds *ExtendedDataSquare) solveCrosswordRow(
155155
var byzErr *ErrByzantineData
156156
if errors.As(err, &byzErr) {
157157
byzErr.Shares = shares
158+
return false, false, byzErr
158159
}
159160
return false, false, err
160161
}
@@ -229,6 +230,7 @@ func (eds *ExtendedDataSquare) solveCrosswordCol(
229230
var byzErr *ErrByzantineData
230231
if errors.As(err, &byzErr) {
231232
byzErr.Shares = shares
233+
return false, false, byzErr
232234
}
233235
return false, false, err
234236
}

0 commit comments

Comments
 (0)