Skip to content

Commit 7be6dba

Browse files
committed
refactor(merkle): cosmetic cleanup on ProveLeafRec return
1 parent ba6d0dc commit 7be6dba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/merkle/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,15 @@ func (tree *Tree) ProveLeafRec(index *big.Int) (*Proof, error) {
260260
}
261261
proof.PushHash(rhs.RootHash)
262262
proof.Pos = index
263-
return proof, err
263+
return proof, nil
264264
} else {
265265
proof, err := rhs.ProveLeafRec(innerIndex)
266266
if err != nil {
267267
return nil, err
268268
}
269269
proof.PushHash(lhs.RootHash)
270270
proof.Pos = index
271-
return proof, err
271+
return proof, nil
272272
}
273273
}
274274

0 commit comments

Comments
 (0)