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/container_registry/tag.rb')
-rw-r--r--lib/container_registry/tag.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container_registry/tag.rb b/lib/container_registry/tag.rb
index 2a32f950457..04a8e1d2e8f 100644
--- a/lib/container_registry/tag.rb
+++ b/lib/container_registry/tag.rb
@@ -104,7 +104,7 @@ module ContainerRegistry
def total_size
return unless layers
- layers.map(&:size).sum if v2?
+ layers.sum(&:size) if v2?
end
# rubocop: enable CodeReuse/ActiveRecord