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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-05-14 00:08:55 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-05-14 00:08:55 +0300
commita5650b86b5a809d3b7c754afd5ff5671e9bcc584 (patch)
tree6a53414f01dae4b5716a94c8d33136616c8b3eb1 /lib/gitlab/cycle_analytics
parente689e858ede41a34b1e9132eba6a602632e6885e (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.rb2
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