Commit 0dba294f authored by Fatih Acet's avatar Fatih Acet

Favor the ternary operator. 🚓

parent 7cb9c7d8
......@@ -56,7 +56,7 @@ module MilestonesHelper
def milestone_remaining_days(milestone, withContentTag = true)
if milestone.expired?
if withContentTag then content_tag(:strong, 'expired') else 'expired' end
withContentTag ? content_tag(:strong, 'expired') : 'expired'
elsif milestone.due_date
days = milestone.remaining_days
......
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