diff options
author | 2024-03-24 21:06:48 +0000 | |
---|---|---|
committer | 2024-03-30 10:39:57 +0000 | |
commit | aab6b9d129ac4d7ff85b7fb1dcd00ca715b5e450 (patch) | |
tree | 84e7cfc437dcfc2ee24dfface9979e751c9a5e1e /bot/exts/fun/battleship.py | |
parent | Bump references to 3.11 up to Pytohn 3.12 (diff) |
Lint repo with new ruff rules
Diffstat (limited to 'bot/exts/fun/battleship.py')
-rw-r--r-- | bot/exts/fun/battleship.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/exts/fun/battleship.py b/bot/exts/fun/battleship.py index a209ff02..d9b2b58a 100644 --- a/bot/exts/fun/battleship.py +++ b/bot/exts/fun/battleship.py @@ -355,13 +355,11 @@ class Battleship(commands.Cog): return True - if ( + return bool( user.id == ctx.author.id and str(reaction.emoji) == CROSS_EMOJI and reaction.message.id == announcement.id - ): - return True - return False + ) def already_playing(self, player: discord.Member) -> bool: """Check if someone is already in a game.""" |