Skip to content

Commit

Permalink
Update proof.go
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega authored Sep 10, 2024
1 parent 4f4499a commit 501b7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func rightBranchesAreEmpty(spec *InnerSpec, op *InnerOp) (bool, error) {
// the index of this branch
func getPosition(order []int32, branch int32) (int, error) {
if branch < 0 || int(branch) >= len(order) {
return 0, fmt.Errorf("invalid branch: %d", branch)
return -1, fmt.Errorf("invalid branch: %d", branch)
}
for i, item := range order {
if branch == item {
Expand Down

0 comments on commit 501b7f1

Please sign in to comment.