Use a walrus here

This commit is contained in:
DevilXD
2022-04-09 22:08:08 +02:00
parent bd737985c4
commit 3bccbc45c3

View File

@@ -157,8 +157,7 @@ class Twitch:
return -1
def _game_key(self, channel: Channel) -> int:
game = channel.game
if game is None:
if (game := channel.game) is None:
return 1
elif game not in self.games:
# in case a channel is gathered from an ACL and doesn't play the expected game,