We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9715f8e commit 4c85d3eCopy full SHA for 4c85d3e
1 file changed
decoderpool.go
@@ -48,7 +48,7 @@ type DecoderWrapper struct {
48
// the pool.
49
func (w *DecoderWrapper) Close() {
50
err := w.Decoder.Reset(nil)
51
- if err != nil {
+ if err == nil {
52
w.pool.Put(w)
53
}
54
0 commit comments