From deee49de5407354fa683dee289c908875025ed52 Mon Sep 17 00:00:00 2001 From: David Guo <64177894+IAMDAVID0920@users.noreply.github.com> Date: Wed, 5 Jun 2024 10:14:19 -0400 Subject: [PATCH] add missing return value when creating new XZ reader and writer (#13021) --- post-processor/compress/benchmark.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post-processor/compress/benchmark.go b/post-processor/compress/benchmark.go index 6f38ddc5a78..89f12d9dbd8 100644 --- a/post-processor/compress/benchmark.go +++ b/post-processor/compress/benchmark.go @@ -211,7 +211,7 @@ func (c *Compressor) BenchmarkLZ4Reader(b *testing.B) { } func (c *Compressor) BenchmarkXZWriter(b *testing.B) { - cw := xz.NewWriter(c.w) + cw, _ := xz.NewWriter(c.w) b.ResetTimer() _, err := io.Copy(cw, c.r) @@ -223,7 +223,7 @@ func (c *Compressor) BenchmarkXZWriter(b *testing.B) { } func (c *Compressor) BenchmarkXZReader(b *testing.B) { - cr := xz.NewReader(c.w) + cr, _ := xz.NewReader(c.w) b.ResetTimer() _, err := io.Copy(io.Discard, cr)