From 4b70d7d55fa74c54fe4ebd3aa3be9087009ffe06 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Tue, 21 May 2024 16:17:06 +0200 Subject: [PATCH] Return err and not nil --- state/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/storage.go b/state/storage.go index d8cb2e1..0d0faa7 100644 --- a/state/storage.go +++ b/state/storage.go @@ -171,7 +171,7 @@ func (s *Storage) PrepareSnapshot(txn *sqlx.Tx) (tableName string, err error) { `SELECT UNNEST(membership_events) AS membership_nid INTO TEMP ` + tempTableName + ` FROM syncv3_snapshots JOIN syncv3_rooms ON syncv3_snapshots.snapshot_id = syncv3_rooms.current_snapshot_id`, ) - return tempTableName, nil + return tempTableName, err } // GlobalSnapshot snapshots the entire database for the purposes of initialising