Refactor return statement for clarity

This commit is contained in:
rjl493456442 2026-04-27 19:50:04 +08:00 committed by GitHub
parent c63d796fbf
commit 776002cfaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,8 +166,7 @@ func (s *stateObject) GetState(key common.Hash) common.Hash {
if dirty { if dirty {
return value return value
} }
origin := s.GetCommittedState(key) return s.GetCommittedState(key)
return origin
} }
// getState retrieves a value associated with the given storage key, along with // getState retrieves a value associated with the given storage key, along with