Skip to content

Commit

Permalink
fix linting (#115)
Browse files Browse the repository at this point in the history
Co-authored-by: Marko Baricevic <[email protected]>
  • Loading branch information
tac0turtle and tac0turtle authored Nov 16, 2022
1 parent ecbe025 commit 94d38b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions go/ops.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ func (op *LeafOp) Apply(key []byte, value []byte) ([]byte, error) {
// Apply will calculate the hash of the next step, given the hash of the previous step
func (op *InnerOp) Apply(child []byte) ([]byte, error) {
if len(child) == 0 {
return nil, errors.New("Inner op needs child value")
return nil, errors.New("inner op needs child value")
}
preimage := append(op.Prefix, child...)
preimage := op.Prefix
preimage = append(preimage, child...)
preimage = append(preimage, op.Suffix...)
return doHash(op.Hash, preimage)
}
Expand Down

0 comments on commit 94d38b8

Please sign in to comment.