aboutsummaryrefslogtreecommitdiffstats
path: root/app/services/zip_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/zip_service.rb')
-rw-r--r--app/services/zip_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/zip_service.rb b/app/services/zip_service.rb
index a34dd97cc..50475f7d3 100644
--- a/app/services/zip_service.rb
+++ b/app/services/zip_service.rb
@@ -57,7 +57,7 @@ class ZipService
current_key,
# Second part of the solution, yield the closed stream
current_output.close_buffer,
- current_spurious,
+ current_spurious.to_a,
foreign_lines)
end
end
@@ -66,7 +66,7 @@ class ZipService
@current_key = entry_key
# First piece of the solution, use internal way to create a Zip::OutputStream
@current_output = Zip::OutputStream.new(StringIO.new(''), true, nil)
- @current_spurious = []
+ @current_spurious = Set.new
@foreign_lines = []
end