Skip to content

Commit

Permalink
Add missing error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Jun 6, 2024
1 parent ce64049 commit edda608
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proof/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ func (c *hashProver) consumeMsg() error {
}

// Append the current message data to the proof
c.proof.Write(buf)
_, err = c.proof.Write(buf)
if err != nil {
return err
}
c.msg.Reset()
}

Expand Down

0 comments on commit edda608

Please sign in to comment.