mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
triedb: useless check nil
This commit is contained in:
parent
7f9b06e7aa
commit
fa13fadc4e
1 changed files with 0 additions and 4 deletions
|
|
@ -42,9 +42,5 @@ func NewStateSet() *StateSet {
|
|||
|
||||
// internal returns a state set for path database internal usage.
|
||||
func (set *StateSet) internal() *pathdb.StateSetWithOrigin {
|
||||
// the nil state set is possible in tests.
|
||||
if set == nil {
|
||||
return nil
|
||||
}
|
||||
return pathdb.NewStateSetWithOrigin(set.Accounts, set.Storages, set.AccountsOrigin, set.StoragesOrigin, set.RawStorageKey)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue