Commit b5ece088 authored by Phil Hughes's avatar Phil Hughes

Ruby fixes

parent 35b3c709
......@@ -48,18 +48,11 @@ module IssuablesHelper
end
def milestone_dropdown_label(milestone_title, default_label)
milestone_title =
if milestone_title == Milestone::Upcoming.name
Milestone::Upcoming.title
else
milestone_title
milestone_title = Milestone::Upcoming.title
end
if !milestone_title.nil? && !milestone_title.empty?
h(milestone_title)
else
default_label
end
h(milestone_title.presence || default_label)
end
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