Skip to content

Commit 6c8e0c9

Browse files
committed
polish
1 parent 6113323 commit 6c8e0c9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

splitio/tasks/util/workerpool.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,4 @@ def __init__(self, tasks):
225225

226226
async def await_completion(self):
227227
await asyncio.gather(*[task.await_completion() for task in self._tasks])
228-
for task in self._tasks:
229-
if task._failed:
230-
return False
231-
return True
228+
return not any(task._failed for task in self._tasks)

0 commit comments

Comments
 (0)