No need to require stringio in Zip::File.open_buffer.

It's already required in zip.rb.
This commit is contained in:
Robert Haines 2018-04-04 14:31:34 +01:00
parent cfa9441914
commit 03633933eb
1 changed files with 0 additions and 1 deletions

View File

@ -120,7 +120,6 @@ module Zip
raise "Zip::File.open_buffer expects a String or IO-like argument (responds to #{IO_METHODS.join(', ')}). Found: #{io.class}"
end
if io.is_a?(::String)
require 'stringio'
io = ::StringIO.new(io)
elsif io.respond_to?(:binmode)
# https://github.com/rubyzip/rubyzip/issues/119