From 416dbcee76afc50bcfec8fee304d8b45231b6c1c Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 23 Nov 2023 19:38:55 +0100 Subject: [PATCH] No naked returns --- roomserver/internal/input/input_latest_events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roomserver/internal/input/input_latest_events.go b/roomserver/internal/input/input_latest_events.go index 4db3bfc08..525b405f0 100644 --- a/roomserver/internal/input/input_latest_events.go +++ b/roomserver/internal/input/input_latest_events.go @@ -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