Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-06-06 18:50:38 +0300
committerFatih Acet <acetfatih@gmail.com>2016-06-06 18:50:38 +0300
commit0dba294f99e5ec672b4a8a97b5d51ac79a3efc8b (patch)
treeb9bdd53be26fd542992060c99bf4134a07a19d99 /app/helpers/milestones_helper.rb
parent7cb9c7d8ea97a17029a7b24b5bcc870f1063e025 (diff)
Favor the ternary operator. :police_car:
Diffstat (limited to 'app/helpers/milestones_helper.rb')
-rw-r--r--app/helpers/milestones_helper.rb2
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