Skip to content

Commit

Permalink
fix: hopefully the last lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Nov 8, 2023
1 parent 73cdcf9 commit acc4750
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/file/redundancy/redundancy.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ func (p *Params) encode(chunkLevel int, callback ParityChunkCallback) error {
}

// write parity chunk to the level above
callback(chunkLevel+1, span, args.Ref)
err = callback(chunkLevel+1, span, args.Ref)
if err != nil {
return err
}
}
// reset cursor of dataBuffer in case it was a full chunk
p.cursor[chunkLevel] = 0
Expand Down

0 comments on commit acc4750

Please sign in to comment.