Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmdm committed Nov 4, 2021
1 parent 848bf71 commit 58a8bb9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions middleware/decompress.go
Expand Up @@ -124,14 +124,10 @@ func DecompressWithConfig(config DecompressConfig) echo.MiddlewareFunc {
}

type readCloserCustom struct {
src io.Reader
io.Reader
closeFunc func() error
}

func (lp readCloserCustom) Read(b []byte) (int, error) {
return lp.src.Read(b)
}

func (lp readCloserCustom) Close() error {
if lp.closeFunc == nil {
return nil
Expand Down

0 comments on commit 58a8bb9

Please sign in to comment.