aboutsummaryrefslogtreecommitdiff
path: root/internal/compress/zlib/reader.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/compress/zlib/reader.go')
-rw-r--r--internal/compress/zlib/reader.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/compress/zlib/reader.go b/internal/compress/zlib/reader.go
index 75ef864c..a6497dec 100644
--- a/internal/compress/zlib/reader.go
+++ b/internal/compress/zlib/reader.go
@@ -132,6 +132,7 @@ func (z *Reader) Read(p []byte) (int, error) {
// Finished file; check checksum.
readN, err := io.ReadFull(z.r, z.scratch[0:4])
z.trailerRead += uint64(readN)
+
if err != nil {
if errors.Is(err, io.EOF) {
err = io.ErrUnexpectedEOF