Skip to content

Commit

Permalink
merkledb -- fix nil check in test (#2268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Laine authored Nov 7, 2023
1 parent 1faec38 commit 52f93c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/merkledb/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func getNodeValue(t ReadOnlyTrie, key string) ([]byte, error) {
if err != nil {
return nil, err
}
if result.key != path || result == nil {
if result == nil || result.key != path {
return nil, database.ErrNotFound
}

Expand Down

0 comments on commit 52f93c8

Please sign in to comment.