diff options
author | Małgorzata Ksionek <meksionek@gmail.com> | 2019-05-27 12:44:02 +0200 |
---|---|---|
committer | Małgorzata Ksionek <meksionek@gmail.com> | 2019-05-27 12:44:02 +0200 |
commit | 13f37264349d1c9a016335ba37c6f5bd2d5910df (patch) | |
tree | 325e4c092eae2f50430ac79aa1f446a8d01d7dc3 /app/serializers | |
parent | ee92acccb47c073992f46f9b8f9132a8ef9a92a6 (diff) | |
download | gitlab-ce-13f37264349d1c9a016335ba37c6f5bd2d5910df.tar.gz |
Rephrase specs description for cycle analytics30138-display-cycle-analytics-issue
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/analytics_stage_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/analytics_stage_entity.rb b/app/serializers/analytics_stage_entity.rb index 64eba185a4e..8bc6da5aeeb 100644 --- a/app/serializers/analytics_stage_entity.rb +++ b/app/serializers/analytics_stage_entity.rb @@ -11,6 +11,6 @@ class AnalyticsStageEntity < Grape::Entity expose :median, as: :value do |stage| # median returns a BatchLoader instance which we first have to unwrap by using to_f # we use to_f to make sure results below 1 are presented to the end-user - !stage.median.to_f.zero? ? distance_of_time_in_words(stage.median) : nil + stage.median.to_f.nonzero? ? distance_of_time_in_words(stage.median) : nil end end |