Skip to content

Commit 71ff92b

Browse files
committed
CI: run pre-commit hooks manually
1 parent 4330f0a commit 71ff92b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/objects/player.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ async def unsilence(self, admin: Player, reason: str) -> None:
574574

575575
def _special_case_disconnected_rejoin(self, match: Match, passwd: str) -> bool:
576576
"""This method will allow user to rejoin a match they were disconnected from. If everything's working properly, this method should never be called."""
577-
577+
578578
reverse_slot_search = match.get_slot(self)
579579
lobby = app.state.sessions.channels.get_by_name("#lobby")
580580
if reverse_slot_search is None:
@@ -593,7 +593,7 @@ def _special_case_disconnected_rejoin(self, match: Match, passwd: str) -> bool:
593593
def join_match(self, match: Match, passwd: str) -> bool:
594594
"""Attempt to add `self` to `match`."""
595595
if self.match:
596-
if (self.match.id == match.id):
596+
if self.match.id == match.id:
597597
return self._special_case_disconnected_rejoin(match, passwd)
598598
log(f"{self} tried to join multiple matches?")
599599
self.enqueue(app.packets.match_join_fail())
@@ -655,7 +655,10 @@ def leave_match(self) -> None:
655655

656656
slot = self.match.get_slot(self)
657657
if slot is None:
658-
log(f"{self} tried leaving a match, but slot couldn't be found?", Ansi.LYELLOW)
658+
log(
659+
f"{self} tried leaving a match, but slot couldn't be found?",
660+
Ansi.LYELLOW,
661+
)
659662
else:
660663
if slot.status == SlotStatus.locked:
661664
# player was kicked, keep the slot locked.

0 commit comments

Comments
 (0)