Skip to content

Commit

Permalink
chore: update by review tips
Browse files Browse the repository at this point in the history
  • Loading branch information
will@2012 committed Apr 22, 2024
1 parent 58f65e4 commit bcb9aa9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions trie/triedb/pathdb/nodebufferlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,11 +602,10 @@ func (w *proposedBlockReader) Node(owner common.Hash, path []byte, hash common.H

w.nf.baseMux.RLock()
node, err := w.nf.base.node(owner, path, hash)
w.nf.baseMux.RUnlock()
if err != nil {
w.nf.baseMux.RUnlock()
return nil, err
}
w.nf.baseMux.RUnlock()
if node != nil {
return node.Blob, nil
}
Expand Down

0 comments on commit bcb9aa9

Please sign in to comment.