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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user