Skip to content

Commit

Permalink
remove unecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed May 21, 2024
1 parent d23597a commit e4a0ef0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,13 +856,11 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash {
s.prefetcher = nil
}()
} else {
if s.prefetcher != nil {
s.prefetcher.terminate(true)
defer func() {
s.prefetcher.report()
s.prefetcher = nil // Pre-byzantium, unset any used up prefetcher
}()
}
s.prefetcher.terminate(true)
defer func() {
s.prefetcher.report()
s.prefetcher = nil // Pre-byzantium, unset any used up prefetcher
}()
}
}
// Process all storage updates concurrently. The state object update root
Expand Down

0 comments on commit e4a0ef0

Please sign in to comment.