Skip to content
Snippets Groups Projects
Unverified Commit aebdef6d authored by Mario de la Ossa's avatar Mario de la Ossa
Browse files

simplify multi-if into single case when

parent 9f9a0361
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -154,11 +154,8 @@ module SortingHelper
 
link_to(reverse_url, type: 'button', class: link_class) do
icon_suffix =
if sort_value == sort_value_milestone
'lowest'
elsif sort_value == sort_value_due_date
'lowest'
elsif sort_value.ends_with?('_asc')
case sort_value
when sort_value_milestone, sort_value_due_date, /_asc\z/
'lowest'
else
'highest'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment