No naked returns

This commit is contained in:
Till Faelligen 2023-11-23 19:38:55 +01:00
parent 06064e0b48
commit 416dbcee76
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

@ -58,7 +58,7 @@ func (r *Inputer) updateLatestEvents(
transactionID *api.TransactionID, transactionID *api.TransactionID,
rewritesState bool, rewritesState bool,
historyVisibility gomatrixserverlib.HistoryVisibility, historyVisibility gomatrixserverlib.HistoryVisibility,
) (err error) { ) error {
trace, ctx := internal.StartRegion(ctx, "updateLatestEvents") trace, ctx := internal.StartRegion(ctx, "updateLatestEvents")
defer trace.EndRegion() defer trace.EndRegion()
@ -112,7 +112,7 @@ func (r *Inputer) updateLatestEvents(
} }
succeeded = true succeeded = true
return return nil
} }
// latestEventsUpdater tracks the state used to update the latest events in the // latestEventsUpdater tracks the state used to update the latest events in the