Skip to content

Commit

Permalink
add missing return value when creating new XZ reader and writer (#13021)
Browse files Browse the repository at this point in the history
  • Loading branch information
IAMDAVID0920 authored Jun 5, 2024
1 parent 4bd7e95 commit deee49d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions post-processor/compress/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit deee49d

Please sign in to comment.