From 1decec765aec30dc9a8ef16b5da8b9fc840a9798 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sat, 17 Jan 2026 17:05:20 +0800 Subject: [PATCH] triedb/pathdb: do not need to check flag just return it --- triedb/pathdb/states.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/triedb/pathdb/states.go b/triedb/pathdb/states.go index dc737c3b53..b7721102d8 100644 --- a/triedb/pathdb/states.go +++ b/triedb/pathdb/states.go @@ -97,10 +97,8 @@ func newStates(accounts map[common.Hash][]byte, storages map[common.Hash]map[com // account returns the account data associated with the specified address hash. func (s *stateSet) account(hash common.Hash) ([]byte, bool) { // If the account is known locally, return it - if data, ok := s.accountData[hash]; ok { - return data, true - } - return nil, false // account is unknown in this set + data, ok := s.accountData[hash] + return data, ok } // mustAccount returns the account data associated with the specified address