Skip to content

Commit 1d19172

Browse files
committed
Avoid logging a warning from isComplete
1 parent 8177e69 commit 1d19172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ public static void maybeAutoPersistNode(@NonNull FlowNode node) {
12711271

12721272
@Override
12731273
public boolean isComplete() {
1274-
return done || super.isComplete();
1274+
return done || (heads != null && super.isComplete());
12751275
}
12761276

12771277
/**

0 commit comments

Comments
 (0)