Simplify condition

[MAILPOET-4523]
This commit is contained in:
Jan Jakes
2022-09-12 07:40:07 +02:00
committed by John Oleksowicz
parent 9678d4f71a
commit ea9a410e70

View File

@ -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;
} }