Remove useless return in ZipCryptoReaderValid::read()
This commit is contained in:
parent
1f87098e57
commit
2a5112386c
1 changed files with 2 additions and 6 deletions
|
@ -118,10 +118,6 @@ impl<R: std::io::Read> std::io::Read for ZipCryptoReaderValid<R>
|
||||||
{
|
{
|
||||||
fn read(&mut self, mut buf: &mut [u8]) -> std::io::Result<usize>
|
fn read(&mut self, mut buf: &mut [u8]) -> std::io::Result<usize>
|
||||||
{
|
{
|
||||||
if buf.len() == 0 {
|
|
||||||
return Ok(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
//Note: There might be potential for optimization. Inspiration can be found at:
|
//Note: There might be potential for optimization. Inspiration can be found at:
|
||||||
//https://github.com/kornelski/7z/blob/master/CPP/7zip/Crypto/ZipCrypto.cpp
|
//https://github.com/kornelski/7z/blob/master/CPP/7zip/Crypto/ZipCrypto.cpp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue