Skip to content

Commit

Permalink
trie: fix 'gosimple' lint issue (ethereum#25309)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl authored and cp-wjhan committed Sep 25, 2023
1 parent 9e1cd09 commit 0a31c0d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions trie/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,12 @@ func (s *Sync) Missing(max int) ([]string, []common.Hash, []common.Hash) {
case common.Hash:
codeHashes = append(codeHashes, item)
case string:
path := item
req, ok := s.nodeReqs[path]
req, ok := s.nodeReqs[item]
if !ok {
log.Error("Missing node request", "path", path)
log.Error("Missing node request", "path", item)
continue // System very wrong, shouldn't happen
}
nodePaths = append(nodePaths, path)
nodePaths = append(nodePaths, item)
nodeHashes = append(nodeHashes, req.hash)
}
}
Expand Down

0 comments on commit 0a31c0d

Please sign in to comment.