mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
- fix variable scoping
This commit is contained in:
parent
c49a3e50dc
commit
f89365ef91
1 changed files with 3 additions and 1 deletions
|
@ -29,7 +29,9 @@ class << java.lang.System
|
|||
# ASCII-8BIT).
|
||||
input = File.new(value, "rb")
|
||||
output = File.new(extracted_path, "wb")
|
||||
output.write(chunk) while chunk = input.read(16384)
|
||||
while chunk = input.read(16384)
|
||||
output.write(chunk)
|
||||
end
|
||||
input.close
|
||||
output.close
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue