0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-13 05:11:12 +01:00

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