convert to bool instead of one-line conditional

Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
This commit is contained in:
Simon Bray
2022-04-22 15:20:25 +02:00
committed by GitHub
co-authored by Marius van den Beek
parent cce709d86d
commit d124fa7d5d
+1 -1
View File
@@ -28,7 +28,7 @@ def order_workflow_steps(steps):
"""
Perform topological sort of the steps, return ordered or None
"""
position_data_available = True if steps else False
position_data_available = bool(steps)
for step in steps:
if not step.position or "left" not in step.position or "top" not in step.position:
position_data_available = False