Skip to content

Commit

Permalink
merkledb -- generalize error case to check state that should never …
Browse files Browse the repository at this point in the history
…occur (#2743)
  • Loading branch information
Dan Laine authored Feb 19, 2024
1 parent 441b3a4 commit d372402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/merkledb/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ func (v *view) recordKeyChange(key Key, after *node, hadValue bool, newNode bool
}

before, err := v.getParentTrie().getEditableNode(key, hadValue)
if err != nil && !errors.Is(err, database.ErrNotFound) {
if err != nil {
return err
}
v.changes.nodes[key] = &change[*node]{
Expand Down

0 comments on commit d372402

Please sign in to comment.