Remove obsolete check for the budget presence

This check isn't necessary since commit 7e3dd47d5, since now we check
that the budget is present before creating the components which call
this method.
This commit is contained in:
Javi Martín
2023-05-23 18:26:43 +02:00
parent 106dee0040
commit fb0caa3eda

View File

@@ -13,8 +13,6 @@ class Budgets::MapComponent < ApplicationComponent
private private
def coordinates def coordinates
return unless budget.present?
if budget.publishing_prices_or_later? && budget.investments.selected.any? if budget.publishing_prices_or_later? && budget.investments.selected.any?
investments = budget.investments.selected investments = budget.investments.selected
else else