Skip to content

Commit

Permalink
remove comments^
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Nov 9, 2024
1 parent ed523ca commit 99dd64a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions esmerald/routing/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,8 @@ async def another(request: Request) -> str:
# WebhookHandler is a subclass of HTTPHandler, make sure to not upgrade it
...
elif isinstance(route, HTTPHandler):
# if using add_route, we would enter a completely different code path with a not fully initialized router
route = Gateway(handler=route)
elif isinstance(route, WebSocketHandler):
# if using add_websocket_route, we would enter a completely different code path with a not fully initialized router
route = WebSocketGateway(handler=route)
if not isinstance(
route,
Expand Down Expand Up @@ -2917,10 +2915,8 @@ def resolve_route_path_handler(
# fail later, a WebhookHandler is subclass of HTTPHandler, so pass down
...
elif isinstance(route, HTTPHandler):
# if using add_route, we would enter a completely different code path with a not fully initialized router
route = Gateway(handler=route)
elif isinstance(route, WebSocketHandler):
# if using add_websocket_route, we would enter a completely different code path with a not fully initialized router
route = WebSocketGateway(handler=route)

if not isinstance(route, (Include, Gateway, WebSocketGateway)):
Expand Down

0 comments on commit 99dd64a

Please sign in to comment.