aboutsummaryrefslogtreecommitdiff
path: root/internal/zlib
diff options
context:
space:
mode:
Diffstat (limited to 'internal/zlib')
-rw-r--r--internal/zlib/writer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/zlib/writer.go b/internal/zlib/writer.go
index 78ec8034..75a8ec1d 100644
--- a/internal/zlib/writer.go
+++ b/internal/zlib/writer.go
@@ -136,13 +136,13 @@ func (z *Writer) Write(p []byte) (n int, err error) {
n, err = z.compressor.Write(p)
if err != nil {
z.err = err
- return
+ return n, err
}
if _, err = z.digest.Write(p); err != nil {
z.err = err
return 0, z.err
}
- return
+ return n, err
}
// Flush flushes the Writer to its underlying [io.Writer].