Skip to content

Commit

Permalink
eth/downloader: removed unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongkyun-oh committed Dec 22, 2020
1 parent 61469cf commit 3075d5f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
return accepted, nil
}
// If none of the data was good, it's a stale delivery
if errors.Is(failure, errInvalidChain) {
return accepted, failure
}
if accepted > 0 {
return accepted, fmt.Errorf("partial failure: %v", failure)
}
Expand Down

0 comments on commit 3075d5f

Please sign in to comment.