Skip to content

Commit 603e1cf

Browse files
committed
Simplify PipelineNodeUtil#isStage to not include nodes with LabelActions
1 parent 98f212e commit 603e1cf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/io/jenkins/plugins/pipelinegraphview/utils/PipelineNodeUtil.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ public static String getDisplayName(@NonNull FlowNode node) {
4848
}
4949

5050
public static boolean isStage(FlowNode node) {
51-
return node != null
52-
&& ((node.getAction(StageAction.class) != null)
53-
|| (node.getAction(LabelAction.class) != null
54-
&& node.getAction(ThreadNameAction.class) == null));
51+
return node != null && (node.getAction(StageAction.class) != null);
5552
}
5653

5754
public static boolean isSyntheticStage(@Nullable FlowNode node) {

0 commit comments

Comments
 (0)