Skip to content

Commit

Permalink
Fix errcheck lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bodgit committed Apr 30, 2022
1 parent 68d17a1 commit 7a156ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/deflate/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ func NewReader(_ []byte, _ uint64, readers []io.ReadCloser) (io.ReadCloser, erro

fr, ok := flateReaderPool.Get().(io.ReadCloser)
if ok {
fr.(flate.Resetter).Reset(readers[0], nil)
if err := fr.(flate.Resetter).Reset(readers[0], nil); err != nil {
return nil, err
}
} else {
fr = flate.NewReader(readers[0])
}
Expand Down

0 comments on commit 7a156ae

Please sign in to comment.