mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-06 15:08:39 +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
|
// 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
|
// 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.
|
// account, and stateEmpty is true when no entries of any kind remain.
|
||||||
func (s *journalMutationState) remove(kind journalMutationKind) (bool, bool) {
|
func (s *journalMutationState) remove(kind journalMutationKind) (kindEmpty bool, stateEmpty bool) {
|
||||||
kindEmpty := s.counts.remove(kind)
|
kindEmpty = s.counts.remove(kind)
|
||||||
return kindEmpty, s.counts == (journalMutationCounts{})
|
return kindEmpty, s.counts == (journalMutationCounts{})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue