No naked returns
This commit is contained in:
parent
06064e0b48
commit
416dbcee76
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue