address review comments

This commit is contained in:
Sam Wedgwood 2023-08-11 16:33:05 +01:00
parent 635bc39102
commit acde492729

View file

@ -855,7 +855,7 @@ func (r *Queryer) QueryRoomsForUser(ctx context.Context, userID spec.UserID, des
for i, roomIDStr := range roomIDStrs {
roomID, err := spec.NewRoomID(roomIDStr)
if err != nil {
return nil, nil
return nil, err
}
roomIDs[i] = *roomID
}