mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
eth/downloader: fix staticcheck warning S1033: unnecessary guard for delete
This commit is contained in:
parent
003af00b25
commit
af40f2e194
1 changed files with 1 additions and 3 deletions
|
|
@ -419,9 +419,7 @@ func (s *stateSync) process(req *stateReq) error {
|
|||
default:
|
||||
return fmt.Errorf("invalid state node %s: %v", hash.TerminalString(), err)
|
||||
}
|
||||
if _, ok := req.tasks[hash]; ok {
|
||||
delete(req.tasks, hash)
|
||||
}
|
||||
delete(req.tasks, hash)
|
||||
}
|
||||
// Put unfulfilled tasks back into the retry queue
|
||||
npeers := s.d.peers.Len()
|
||||
|
|
|
|||
Loading…
Reference in a new issue