Skip to content

Commit

Permalink
Remove one more instance of dead validation code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasak committed Jun 20, 2024
1 parent 47a5799 commit 0c67c41
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions synapse/streams/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ async def from_request(
raise SynapseError(400, "'to' parameter is invalid")

limit = parse_integer(request, "limit", default=default_limit)
if limit < 0:
raise SynapseError(400, "Limit must be 0 or above")

limit = min(limit, MAX_LIMIT)

try:
Expand Down

0 comments on commit 0c67c41

Please sign in to comment.