aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorRobert2017-12-14 16:47:31 +0100
committerRobert2017-12-14 18:00:47 +0100
commit0354c84367cede7d738c79e9c0f116b2c0a178b2 (patch)
treed317604cec8f7150b555a06e554225e177a6c33f /app
parent940ebd078f484a3b3f511baed1574945e705ca83 (diff)
downloadchouette-core-0354c84367cede7d738c79e9c0f116b2c0a178b2.tar.bz2
Refs: #5281@2h; Code Analysis first bugfix
- Rebased #5006 upoon master and created #5281 from #5006 - Setup regression test based on client provided input - Fixed bug with multiple spurious directory occurances
Diffstat (limited to 'app')
-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