Skip to content

Commit

Permalink
fix: add gzip close error
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Mar 8, 2019
1 parent b57543e commit 0dc145d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func doGzip(buf []byte, level int) ([]byte, error) {
if err != nil {
return nil, err
}
w.Close()
err = w.Close()
if err != nil {
return nil, err
}
return b.Bytes(), nil
}

0 comments on commit 0dc145d

Please sign in to comment.