diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 00:08:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-14 00:08:55 +0300 |
commit | a5650b86b5a809d3b7c754afd5ff5671e9bcc584 (patch) | |
tree | 6a53414f01dae4b5716a94c8d33136616c8b3eb1 /lib/gitlab/cycle_analytics | |
parent | e689e858ede41a34b1e9132eba6a602632e6885e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/cycle_analytics')
-rw-r--r-- | lib/gitlab/cycle_analytics/summary/value.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cycle_analytics/summary/value.rb b/lib/gitlab/cycle_analytics/summary/value.rb index 9516f9ec974..ce32132e048 100644 --- a/lib/gitlab/cycle_analytics/summary/value.rb +++ b/lib/gitlab/cycle_analytics/summary/value.rb @@ -33,7 +33,7 @@ module Gitlab class PrettyNumeric < Numeric def to_s # 0 is shown as - - value.nonzero? ? super : None.new.to_s + (value || 0).nonzero? ? super : None.new.to_s end end end |