aboutsummaryrefslogtreecommitdiff
path: root/internal/compress/zlib/reader.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-05 20:55:17 +0800
committerGravatar Runxi Yu2026-03-05 20:55:17 +0800
commit915fca6a9c2923a3bcf7a5a257e5832fab8cd432 (patch)
tree1726c92257263033da5cadb4a570c97b68332ee7 /internal/compress/zlib/reader.go
parentlint: Exclude compress/{flate,internal} (diff)
signatureNo signature
*: Fix lint wsl_v5
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