eth/downloader: remove unnecessary condition (#22052)

This commit is contained in:
jk-jeongkyun 2020-12-28 06:26:42 +09:00 committed by GitHub
parent ab0979f930
commit 653e8b9dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}