Skip to content

Commit

Permalink
refactor: use elif in AsyncClient._handle_event()
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamecracks committed Mar 24, 2024
1 parent eb7a397 commit 641ac01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dumdum/client/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _handle_event(self, event: ClientEvent) -> None:
if isinstance(event, ClientEventIncompatibleVersion):
assert self._writer is not None
self._writer.close()
if isinstance(event, ClientEventAuthentication):
elif isinstance(event, ClientEventAuthentication):
self._set_authentication(event.success)
self._dispatch_event(event)

Expand Down

0 comments on commit 641ac01

Please sign in to comment.