Commit f8b5ff95 authored by Phil Hughes's avatar Phil Hughes

Fixed rubocop issues

parent f3b162a9
...@@ -48,11 +48,12 @@ module IssuablesHelper ...@@ -48,11 +48,12 @@ 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 milestone_title =
Milestone::Upcoming.title if milestone_title == Milestone::Upcoming.name
else Milestone::Upcoming.title
milestone_title else
end milestone_title
end
if !milestone_title.nil? && !milestone_title.empty? if !milestone_title.nil? && !milestone_title.empty?
h(milestone_title) h(milestone_title)
......
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