summaryrefslogtreecommitdiffhomepage
path: root/pkg/compressio
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/compressio')
-rw-r--r--pkg/compressio/compressio.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/compressio/compressio.go b/pkg/compressio/compressio.go
index e0d36aee9..ef8cbd2a5 100644
--- a/pkg/compressio/compressio.go
+++ b/pkg/compressio/compressio.go
@@ -184,10 +184,7 @@ func handleResult(r result, callback func(*chunk) error) error {
if r.err != nil {
return r.err
}
- if err := callback(r.chunk); err != nil {
- return err
- }
- return nil
+ return callback(r.chunk)
}
// schedule schedules the given buffers.