mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-31 01:19:36 +00:00
Use a walrus here
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user