remove redundant index check
This commit is contained in:
parent
cda0448611
commit
ca00c2d8fb
|
@ -217,7 +217,7 @@ proc prepareDecodingData(
|
|||
empty = blk.isEmpty
|
||||
|
||||
cids[idx] = blk.cid
|
||||
if idx >= encoded.rounded and pos >= encoded.ecK:
|
||||
if idx >= encoded.rounded:
|
||||
trace "Retrieved parity block"
|
||||
shallowCopy(parityData[pos - encoded.ecK], if blk.isEmpty: emptyBlock else: blk.data)
|
||||
parityPieces.inc
|
||||
|
|
Loading…
Reference in New Issue