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:
parent
06064e0b48
commit
416dbcee76
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue