Remove unnecessary change

This commit is contained in:
Neil Alexander 2022-03-09 10:15:54 +00:00
parent e9c667ea6b
commit 0a3817170b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -240,10 +240,10 @@ func GetVisibility(
req *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI, req *http.Request, rsAPI roomserverAPI.RoomserverInternalAPI,
roomID string, roomID string,
) util.JSONResponse { ) util.JSONResponse {
res := &roomserverAPI.QueryPublishedRoomsResponse{} res := roomserverAPI.QueryPublishedRoomsResponse{}
err := rsAPI.QueryPublishedRooms(req.Context(), &roomserverAPI.QueryPublishedRoomsRequest{ err := rsAPI.QueryPublishedRooms(req.Context(), &roomserverAPI.QueryPublishedRoomsRequest{
RoomID: roomID, RoomID: roomID,
}, res) }, &res)
if err != nil { if err != nil {
util.GetLogger(req.Context()).WithError(err).Error("QueryPublishedRooms failed") util.GetLogger(req.Context()).WithError(err).Error("QueryPublishedRooms failed")
return jsonerror.InternalServerError() return jsonerror.InternalServerError()