mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Apply suggestion from @jwasinger
This commit is contained in:
parent
97dc852329
commit
4ce3458586
1 changed files with 2 additions and 2 deletions
|
|
@ -78,8 +78,8 @@ func (s *journalMutationState) add(kind journalMutationKind) {
|
|||
// remove drops one occurrence of the given mutation kind. It returns two
|
||||
// booleans: kindEmpty is true when no entries of that kind remain for the
|
||||
// account, and stateEmpty is true when no entries of any kind remain.
|
||||
func (s *journalMutationState) remove(kind journalMutationKind) (bool, bool) {
|
||||
kindEmpty := s.counts.remove(kind)
|
||||
func (s *journalMutationState) remove(kind journalMutationKind) (kindEmpty bool, stateEmpty bool) {
|
||||
kindEmpty = s.counts.remove(kind)
|
||||
return kindEmpty, s.counts == (journalMutationCounts{})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue