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:
Diffstat (limited to 'lib/gitlab/utils')
-rw-r--r--lib/gitlab/utils/deep_size.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/utils/deep_size.rb b/lib/gitlab/utils/deep_size.rb
index ed2ceb8af7c..e185786e638 100644
--- a/lib/gitlab/utils/deep_size.rb
+++ b/lib/gitlab/utils/deep_size.rb
@@ -13,8 +13,8 @@ module Gitlab
def initialize(root, max_size: DEFAULT_MAX_SIZE, max_depth: DEFAULT_MAX_DEPTH)
@root = root
- @max_size = max_size
- @max_depth = max_depth
+ @max_size = max_size || DEFAULT_MAX_SIZE
+ @max_depth = max_depth || DEFAULT_MAX_DEPTH
@size = 0
@depth = 0