From aab6b9d129ac4d7ff85b7fb1dcd00ca715b5e450 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 24 Mar 2024 21:06:48 +0000 Subject: Lint repo with new ruff rules --- bot/exts/fun/connect_four.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bot/exts/fun/connect_four.py') 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.""" -- cgit v1.2.3