Remove unnecessary condition

The ballot is used in the previous lines, so there's no point checking
whether it's present.
This commit is contained in:
Javi Martín
2020-07-12 22:24:09 +02:00
parent 792ebdb175
commit 7c425c00aa

View File

@@ -268,7 +268,7 @@ class Budget
return :not_selected unless selected?
return :no_ballots_allowed unless budget.balloting?
return :different_heading_assigned unless ballot.valid_heading?(heading)
return :not_enough_money if ballot.present? && !enough_money?(ballot)
return :not_enough_money unless enough_money?(ballot)
return :casted_offline if ballot.casted_offline?
end