Skip to content

Commit

Permalink
chore: remove redundant else statement (sparckles#1052)
Browse files Browse the repository at this point in the history
  • Loading branch information
dave42w authored Nov 30, 2024
1 parent d900cab commit d178f1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions robyn/ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ def on(self, type: str) -> Callable[..., None]:
def inner(handler):
if type not in ["connect", "close", "message"]:
raise Exception(f"Socket method {type} does not exist")
else:
params = dict(inspect.signature(handler).parameters)
num_params = len(params)
is_async = asyncio.iscoroutinefunction(handler)

injected_dependencies = self.dependencies.get_dependency_map(self)
params = dict(inspect.signature(handler).parameters)
num_params = len(params)
is_async = asyncio.iscoroutinefunction(handler)

injected_dependencies = self.dependencies.get_dependency_map(self)

new_injected_dependencies = {}
for dependency in injected_dependencies:
Expand Down

0 comments on commit d178f1c

Please sign in to comment.