Skip to content

Commit

Permalink
Replacing ioutil
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmaradiaga committed Dec 1, 2023
1 parent ad39f00 commit 4689fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions btp/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net/http"
)

Expand Down Expand Up @@ -36,7 +35,7 @@ func (e Error) Error() string {

// Body is the Body of the HTTP response
func (e Error) Body() io.ReadCloser {
return ioutil.NopCloser(bytes.NewBuffer(e.body))
return io.NopCloser(bytes.NewBuffer(e.body))
}

// Headers the HTTP headers returned from API
Expand Down

0 comments on commit 4689fd8

Please sign in to comment.