Zip::InputStream#read returns '' with 0

This commit is contained in:
OZAWA Sakuro 2023-01-16 11:19:03 +09:00 committed by Robert Haines
parent a4f9ec6423
commit a2fc20db8f
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ module Zip
end
if tbuf.nil? || tbuf.empty?
return nil if number_of_bytes
return nil if number_of_bytes&.positive?
return ''
end