eth/downloader: remove unnecessary condition (#22052)
This commit is contained in:
parent
ab0979f930
commit
653e8b9dd9
@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
|
|||||||
return accepted, nil
|
return accepted, nil
|
||||||
}
|
}
|
||||||
// If none of the data was good, it's a stale delivery
|
// If none of the data was good, it's a stale delivery
|
||||||
if errors.Is(failure, errInvalidChain) {
|
|
||||||
return accepted, failure
|
|
||||||
}
|
|
||||||
if accepted > 0 {
|
if accepted > 0 {
|
||||||
return accepted, fmt.Errorf("partial failure: %v", failure)
|
return accepted, fmt.Errorf("partial failure: %v", failure)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user