From 3440ce6643e4dbd98651e985d6aacb874929b1d9 Mon Sep 17 00:00:00 2001 From: Sahil-4555 Date: Fri, 17 Oct 2025 15:35:15 +0530 Subject: [PATCH] fix lint issue --- core/state/statedb.go | 2 +- core/state/trie_prefetcher.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 2fcb36260d..bbca38dca6 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -1221,7 +1221,7 @@ func (s *StateDB) commit(deleteEmptyObjects bool, noStorageWiping bool, blockNum } if s.prefetcher != nil { - // Gather all account addresses with mutations + // Gather all account addresses with mutations dirtyAccounts := s.getDirtyAccountAddresses() if err := s.prefetcher.PrefetchAccounts(dirtyAccounts); err != nil { log.Warn("Failed to prefetch account trie nodes before parallel hashing", "err", err) diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go index 1d5d19ca66..edb4c9879e 100644 --- a/core/state/trie_prefetcher.go +++ b/core/state/trie_prefetcher.go @@ -220,11 +220,11 @@ func (p *triePrefetcher) trieID(owner common.Hash, root common.Hash) string { // PrefetchAccounts triggers prefetching account trie nodes given a list of accounts. func (p *triePrefetcher) PrefetchAccounts(accounts []common.Address) error { - if p == nil { - return nil - } - // The account trie owner hash is zero (empty) as per convention. - return p.prefetch(common.Hash{}, p.root, common.Address{}, accounts, nil, false) + if p == nil { + return nil + } + // The account trie owner hash is zero (empty) as per convention. + return p.prefetch(common.Hash{}, p.root, common.Address{}, accounts, nil, false) } // subfetcher is a trie fetcher goroutine responsible for pulling entries for a