From 09b628f372deaa3f0ec80e23a7d2db14784d3ded Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 07:51:36 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- api/core/workflow/generator/utils/graph_builder.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/api/core/workflow/generator/utils/graph_builder.py b/api/core/workflow/generator/utils/graph_builder.py index 9f3fde3b4a..8dde16fc2e 100644 --- a/api/core/workflow/generator/utils/graph_builder.py +++ b/api/core/workflow/generator/utils/graph_builder.py @@ -309,9 +309,7 @@ class GraphBuilder: # Check for cycles if len(sorted_ids) != len(node_ids): remaining = node_ids - set(sorted_ids) - raise CyclicDependencyError( - f"Cyclic dependency detected involving nodes: {remaining}" - ) + raise CyclicDependencyError(f"Cyclic dependency detected involving nodes: {remaining}") return sorted_ids @@ -530,11 +528,7 @@ class GraphBuilder: # If no terminal nodes found (shouldn't happen), use all non-branching nodes if not terminal_nodes: - terminal_nodes = [ - node["id"] - for node in nodes - if node.get("type") not in BRANCHING_NODE_TYPES - ] + terminal_nodes = [node["id"] for node in nodes if node.get("type") not in BRANCHING_NODE_TYPES] logger.warning("No terminal nodes found, using all non-branching nodes") return terminal_nodes