Skip to content

Commit

Permalink
Fix deprecation in Entry#get_input_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot authored and hainesr committed Apr 9, 2024
1 parent 57cff33 commit a4c3f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zip/entry.rb
Expand Up @@ -571,7 +571,7 @@ def get_input_stream(&block)
raise "unknown @file_type #{@ftype}"
end
else
zis = ::Zip::InputStream.new(@zipfile, local_header_offset)
zis = ::Zip::InputStream.new(@zipfile, offset: local_header_offset)
zis.instance_variable_set(:@complete_entry, self)
zis.get_next_entry
if block_given?
Expand Down

0 comments on commit a4c3f5b

Please sign in to comment.