Skip to content

Commit

Permalink
fix: missing error check for dag itterator
Browse files Browse the repository at this point in the history
  • Loading branch information
f7f376a1fcd0d0e11a10ed1b6577c9 committed Feb 29, 2024
1 parent 58fd672 commit b973685
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,10 @@ func (d *Dag) IterateDag(processLeaf func(leaf *DagLeaf, parent *DagLeaf)) error
})

for _, childHash := range childHashes {
return iterate(childHash, &leaf.Hash)
err := iterate(childHash, &leaf.Hash)
if err != nil {
return err
}
}

return nil
Expand Down

0 comments on commit b973685

Please sign in to comment.