Skip to content

Commit 0e9369c

Browse files
committed
Replace reduce method with sum function for rubyzip 3.0.0
1 parent 5b62e98 commit 0e9369c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cloud_controller/app_packager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def fix_subdir_permissions(root_path, app_contents_path)
4949

5050
def size
5151
Zip::File.open(@path) do |in_zip|
52-
in_zip.reduce(0) { |memo, entry| memo + entry.size }
52+
in_zip.entries.sum(&:size)
5353
end
5454
rescue Zip::Error
5555
invalid_zip!

0 commit comments

Comments
 (0)