Skip to content

Commit

Permalink
Fix FlowNodeWrapper#getNodeType so it can return NodeType.STEP (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartrowe authored Mar 6, 2024
1 parent 87c53b9 commit 1361efa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ public WorkflowRun getRun() {
}

private static NodeType getNodeType(FlowNode node) {
if (PipelineNodeUtil.isStage(node)) {
if (node instanceof AtomNode) {
return NodeType.STEP;
} else if (PipelineNodeUtil.isStage(node)) {
return NodeType.STAGE;
} else if (PipelineNodeUtil.isParallelBranch(node)) {
return NodeType.PARALLEL;
} else if (node instanceof AtomNode) {
return NodeType.STEP;
} else if (PipelineNodeUtil.isUnhandledException(node)) {
return NodeType.UNHANDLED_EXCEPTION;
}
Expand Down

0 comments on commit 1361efa

Please sign in to comment.