8000 Zip::InputStream#read returns '' with 0 · rubyzip/rubyzip@a2fc20d · GitHub
[go: up one dir, main page]

Skip to content

Commit a2fc20d

Browse files
sakurohainesr
authored andcommitted
Zip::InputStream#read returns '' with 0
1 parent a4f9ec6 commit a2fc20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zip/ioextras/abstract_input_stream.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def read(number_of_bytes = nil, buf = +'')
3636
end
3737

3838
if tbuf.nil? || tbuf.empty?
39-
return nil if number_of_bytes
39+
return nil if number_of_bytes&.positive?
4040

4141
return ''
4242
end

0 commit comments

Comments
 (0)
0