mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
convert to bool instead of one-line conditional
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
This commit is contained in:
co-authored by
Marius van den Beek
parent
cce709d86d
commit
d124fa7d5d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user