remove redundant index check

This commit is contained in:
gmega 2024-06-21 17:52:39 -03:00
parent cda0448611
commit ca00c2d8fb
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
1 changed files with 1 additions and 1 deletions

View File

@ -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