Skip to content

Commit

Permalink
Add refund transaction API
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Aug 5, 2023
1 parent ac7e7df commit ce495ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
)

Expand Down Expand Up @@ -102,7 +101,7 @@ func (client *Client) do(req *http.Request) (*Response, error) {
return resp, err
}

_, err = io.Copy(ioutil.Discard, httpResponse.Body)
_, err = io.Copy(io.Discard, httpResponse.Body)
if err != nil {
return resp, err
}
Expand All @@ -119,7 +118,7 @@ func (client *Client) newResponse(httpResponse *http.Response) (*Response, error
resp := new(Response)
resp.HTTPResponse = httpResponse

buf, err := ioutil.ReadAll(resp.HTTPResponse.Body)
buf, err := io.ReadAll(resp.HTTPResponse.Body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ce495ea

Please sign in to comment.