Resolved code smell

This commit is contained in:
Jeroen De Meerleer 2021-06-01 12:25:01 +02:00
parent acc496e3e9
commit 28faee6e41

View File

@ -129,7 +129,7 @@ class CreateAutoBudgetLimits implements ShouldQueue
// find budget limit:
$budgetLimit = $this->findBudgetLimit($autoBudget->budget, $start, $end);
$type = $autoBudget->auto_budget_type;
if (null === $budgetLimit && AutoBudget::AUTO_BUDGET_RESET === (int)$autoBudget->auto_budget_type) {
// that's easy: create one.
// do nothing else.