Skip to content

Commit

Permalink
Merge pull request #18 from okieraised/dev
Browse files Browse the repository at this point in the history
Fix gzip deflating and update go mod
  • Loading branch information
okieraised authored Apr 4, 2023
2 parents fb2af3c + d7eae3d commit 227b324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/okieraised/gonii

go 1.18
go 1.20

require (
github.com/klauspost/pgzip v1.2.5
Expand Down
2 changes: 1 addition & 1 deletion internal/utils/deflate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func DeflateGzip(b []byte) ([]byte, error) {
defer g.Close()

p, err := io.ReadAll(g)
if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF {
if err != nil {
return nil, err
}

Expand Down

0 comments on commit 227b324

Please sign in to comment.