diff --git a/roomserver/storage/postgres/membership_table.go b/roomserver/storage/postgres/membership_table.go index b790dac79..6ed5293e4 100644 --- a/roomserver/storage/postgres/membership_table.go +++ b/roomserver/storage/postgres/membership_table.go @@ -293,7 +293,6 @@ func (s *membershipStatements) SelectRoomsWithMembership( ) ([]types.RoomNID, error) { stmt := sqlutil.TxStmt(txn, s.selectRoomsWithMembershipStmt) rows, err := stmt.QueryContext(ctx, membershipState, userID) - if err != nil { return nil, err } diff --git a/roomserver/storage/sqlite3/membership_table.go b/roomserver/storage/sqlite3/membership_table.go index 1a111087d..7ed86b612 100644 --- a/roomserver/storage/sqlite3/membership_table.go +++ b/roomserver/storage/sqlite3/membership_table.go @@ -270,7 +270,6 @@ func (s *membershipStatements) SelectRoomsWithMembership( ) ([]types.RoomNID, error) { stmt := sqlutil.TxStmt(txn, s.selectRoomsWithMembershipStmt) rows, err := stmt.QueryContext(ctx, membershipState, userID) - if err != nil { return nil, err }