Skip to content

Commit

Permalink
Remove dead validation code from client /hierarchy handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasak committed Jun 20, 2024
1 parent fd8c9aa commit a5f61b0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions synapse/rest/client/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,16 +1430,7 @@ async def on_GET(
requester = await self._auth.get_user_by_req(request, allow_guest=True)

max_depth = parse_integer(request, "max_depth")
if max_depth is not None and max_depth < 0:
raise SynapseError(
400, "'max_depth' must be a non-negative integer", Codes.BAD_JSON
)

limit = parse_integer(request, "limit")
if limit is not None and limit <= 0:
raise SynapseError(
400, "'limit' must be a positive integer", Codes.BAD_JSON
)

return 200, await self._room_summary_handler.get_room_hierarchy(
requester,
Expand Down

0 comments on commit a5f61b0

Please sign in to comment.