Simplify condition
[MAILPOET-4523]
This commit is contained in:
committed by
John Oleksowicz
parent
9678d4f71a
commit
ea9a410e70
@ -127,7 +127,7 @@ class StepHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// no need to schedule a new step if the next step is null, complete the run
|
// no need to schedule a new step if the next step is null, complete the run
|
||||||
if (empty($nextStepArgs[0]['step_id'])) {
|
if (!$nextStep) {
|
||||||
$this->workflowRunStorage->updateStatus($workflowRunId, WorkflowRun::STATUS_COMPLETE);
|
$this->workflowRunStorage->updateStatus($workflowRunId, WorkflowRun::STATUS_COMPLETE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user