Skip to content

Commit 8a90a7a

Browse files
committed
Returns the expression result directly.
1 parent 8e45f3b commit 8a90a7a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,11 +1953,7 @@ private boolean checkTaskQueue() {
19531953
* is new process instance
19541954
*/
19551955
private boolean isNewProcessInstance() {
1956-
if (ExecutionStatus.RUNNING_EXECUTION == processInstance.getState() && processInstance.getRunTimes() >= 1) {
1957-
return false;
1958-
} else {
1959-
return true;
1960-
}
1956+
return !(ExecutionStatus.RUNNING_EXECUTION == processInstance.getState() && processInstance.getRunTimes() >= 1);
19611957
}
19621958

19631959
}

0 commit comments

Comments
 (0)