From 73408a1beb5ef74d7e7bdbc8dcac2cd4356e8ec1 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 10 Oct 2022 17:01:16 +0100 Subject: [PATCH] Fix that thing again --- federationapi/storage/shared/storage.go | 1 - 1 file changed, 1 deletion(-) diff --git a/federationapi/storage/shared/storage.go b/federationapi/storage/shared/storage.go index 20d9a9393..9e40f311c 100644 --- a/federationapi/storage/shared/storage.go +++ b/federationapi/storage/shared/storage.go @@ -69,7 +69,6 @@ func (d *Database) UpdateRoom( purgeRoomFirst bool, ) (joinedHosts []types.JoinedHost, err error) { err = d.Writer.Do(d.DB, nil, func(txn *sql.Tx) error { - var joinedHosts []types.JoinedHost if purgeRoomFirst { if err = d.FederationJoinedHosts.DeleteJoinedHostsForRoom(ctx, txn, roomID); err != nil { return fmt.Errorf("d.FederationJoinedHosts.DeleteJoinedHosts: %w", err)