Commit b5ece088 authored by Phil Hughes's avatar Phil Hughes

Ruby fixes

parent 35b3c709
...@@ -48,18 +48,11 @@ module IssuablesHelper ...@@ -48,18 +48,11 @@ module IssuablesHelper
end end
def milestone_dropdown_label(milestone_title, default_label) def milestone_dropdown_label(milestone_title, default_label)
milestone_title =
if milestone_title == Milestone::Upcoming.name if milestone_title == Milestone::Upcoming.name
Milestone::Upcoming.title milestone_title = Milestone::Upcoming.title
else
milestone_title
end end
if !milestone_title.nil? && !milestone_title.empty? h(milestone_title.presence || default_label)
h(milestone_title)
else
default_label
end
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment