Apply suggestion from @jwasinger

This commit is contained in:
jwasinger 2026-04-27 11:26:33 +02:00 committed by Jared Wasinger
parent 97dc852329
commit 4ce3458586

View file

@ -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{})
}