fix: always pass 0 to ReadBytes

This commit is contained in:
Derrick Hammer 2024-03-22 20:23:37 -04:00
parent ba60a6c729
commit 96713e3538
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func (i *ImportReader) Read(p []byte) (n int, err error) {
// Update cumulative bytes read // Update cumulative bytes read
i.bytesRead += uint64(n) i.bytesRead += uint64(n)
err = i.ReadBytes(n) err = i.ReadBytes(0)
if err != nil { if err != nil {
return 0, err return 0, err
} }