Skip to content

Commit

Permalink
Modernize code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 5, 2024
1 parent 06ed6d1 commit 0b0f67f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ package dumper
import (
"bytes"
"io"
"io/ioutil"
"net/http"
"reflect"
"sort"
Expand Down Expand Up @@ -160,5 +159,5 @@ func copyBody(b io.ReadCloser) (io.ReadCloser, interface{}, error) {
return b, "<invalid>", err
}

return ioutil.NopCloser(&buf), buf.String(), nil
return io.NopCloser(&buf), buf.String(), nil
}

0 comments on commit 0b0f67f

Please sign in to comment.