Skip to content

Commit

Permalink
Remove duplicate binmode call
Browse files Browse the repository at this point in the history
  • Loading branch information
henkesn committed Mar 2, 2020
1 parent e33c07a commit 66324a7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/zip/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ def commit

# Write buffer write changes to buffer and return
def write_buffer(io = ::StringIO.new(''))
io.binmode if io.respond_to?(:binmode)
::Zip::OutputStream.write_buffer(io) do |zos|
@entry_set.each { |e| e.write_to_zip_output_stream(zos) }
zos.comment = comment
Expand Down

0 comments on commit 66324a7

Please sign in to comment.