Skip to content

Commit

Permalink
trie: fixed make lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-wjhan committed Sep 25, 2023
1 parent 2c22e12 commit c18797a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trie/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,11 @@ func (s *Sync) Missing(max int) ([]string, []common.Hash, []common.Hash) {
s.queue.Pop()
s.fetches[depth]++

switch item.(type) {
switch item := item.(type) {
case common.Hash:
codeHashes = append(codeHashes, item.(common.Hash))
codeHashes = append(codeHashes, item)
case string:
path := item.(string)
path := item
req, ok := s.nodeReqs[path]
if !ok {
log.Error("Missing node request", "path", path)
Expand Down

0 comments on commit c18797a

Please sign in to comment.