mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
Simplify error handling in history inspection
Remove explicit error for no history available.
This commit is contained in:
parent
9cb3931d75
commit
49e72a828d
1 changed files with 0 additions and 4 deletions
|
|
@ -143,10 +143,6 @@ func historyRange(freezer ethdb.AncientReader) (uint64, uint64, error) {
|
|||
if err != nil {
|
||||
return 0, 0, err
|
||||
}
|
||||
// If there is no history available, return an explicit error.
|
||||
if head == tail {
|
||||
return 0, 0, fmt.Errorf("no history available")
|
||||
}
|
||||
last := head
|
||||
|
||||
fh, err := readStateHistory(freezer, first)
|
||||
|
|
|
|||
Loading…
Reference in a new issue