triedb: useless check nil

This commit is contained in:
cuiweixie 2025-11-07 21:56:07 +08:00
parent 7f9b06e7aa
commit fa13fadc4e
No known key found for this signature in database
GPG key ID: 16DF64EE15E495A3

View file

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