From e91e25d6dc3a6a14acd44c60d5d81fc125842ba5 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 30 Sep 2022 10:35:40 +0100 Subject: [PATCH] Lint --- syncapi/routing/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/routing/messages.go b/syncapi/routing/messages.go index bc43146b4..8442dea4d 100644 --- a/syncapi/routing/messages.go +++ b/syncapi/routing/messages.go @@ -77,7 +77,7 @@ func OnIncomingMessagesRequest( return jsonerror.InternalServerError() } var succeeded bool - defer sqlutil.EndTransaction(snapshot, &succeeded) + defer sqlutil.EndTransactionWithCheck(snapshot, &succeeded, &err) // check if the user has already forgotten about this room isForgotten, roomExists, err := checkIsRoomForgotten(req.Context(), roomID, device.UserID, rsAPI)