BB: Pass generator instead of list comprehension to all()

This will allow a short-circuit.
This commit is contained in:
Mike Salvatore 2022-10-04 15:43:25 -04:00
parent b713cce893
commit 6ae7676322
1 changed files with 1 additions and 1 deletions

View File

@ -172,4 +172,4 @@ class MonkeyIslandClient(object):
def is_all_monkeys_dead(self):
agents = self.get_agents()
return all([a.stop_time is not None for a in agents])
return all((a.stop_time is not None for a in agents))