aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/fun/battleship.py6
-rw-r--r--bot/exts/fun/connect_four.py6
2 files changed, 4 insertions, 8 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."""
diff --git a/bot/exts/fun/connect_four.py b/bot/exts/fun/connect_four.py
index eec092d1..5e45c576 100644
--- a/bot/exts/fun/connect_four.py
+++ b/bot/exts/fun/connect_four.py
@@ -316,13 +316,11 @@ class ConnectFour(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."""