diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-06-06 18:50:38 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-06-06 18:50:38 +0300 |
commit | 0dba294f99e5ec672b4a8a97b5d51ac79a3efc8b (patch) | |
tree | b9bdd53be26fd542992060c99bf4134a07a19d99 | |
parent | 7cb9c7d8ea97a17029a7b24b5bcc870f1063e025 (diff) | |
download | gitlab-ce-0dba294f99e5ec672b4a8a97b5d51ac79a3efc8b.tar.gz |
Favor the ternary operator. :police_car:
-rw-r--r-- | app/helpers/milestones_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/milestones_helper.rb b/app/helpers/milestones_helper.rb index 2abb0e9b179..f6a8ae3fd63 100644 --- a/app/helpers/milestones_helper.rb +++ b/app/helpers/milestones_helper.rb @@ -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 |