Skip to content

Commit 66324a7

Browse files
committed
Remove duplicate binmode call
1 parent e33c07a commit 66324a7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/zip/file.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ def commit
362362

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

0 commit comments

Comments
 (0)