~edwargix/tallyard

94ba35e9ec35cb3437b8adc78e65a9b3aa02b564 — David Florness 3 years ago bc5e0ac
We don't need this return value to be named
1 files changed, 4 insertions(+), 4 deletions(-)

M election/msg.go
M election/msg.go => election/msg.go +4 -4
@@ 114,10 114,10 @@ func (elections *ElectionsMap) SetupEventHooks(client *mautrix.Client, syncer ma
	}

	wrapper := func(f func(*event.Event) bool) func(*event.Event) bool {
		return func(evt *event.Event) (success bool) {
		return func(evt *event.Event) bool {
			if evt.Unsigned.RedactedBecause != nil {
				log.Debugf("event %s was redacted", evt.ID)
				return
				return false
			}
			eventStore.Lock()
			_, evtIsProcessing := eventStore.Processing[evt.ID]


@@ 140,7 140,7 @@ func (elections *ElectionsMap) SetupEventHooks(client *mautrix.Client, syncer ma
				eventStore.Processing[evt.ID] = struct{}{}
				eventStore.Unlock()
			}
			success = f(evt)
			success := f(evt)
			eventStore.Lock()
			// see EventStore doc for success explanation
			if success {


@@ 150,7 150,7 @@ func (elections *ElectionsMap) SetupEventHooks(client *mautrix.Client, syncer ma
			}
			delete(eventStore.Processing, evt.ID)
			eventStore.Unlock()
			return
			return success
		}
	}