Skip to content

Commit

Permalink
Merge pull request #25 from fnaoto/2022-12-10
Browse files Browse the repository at this point in the history
2022 12 10
  • Loading branch information
fnaoto authored Dec 10, 2022
2 parents 3f6d22f + 07f9915 commit ecff640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ func (c *Client) Decode(resp *http.Response, out interface{}) error {
return nil
}

if buf.String() == "" {
return nil
}

err := json.Unmarshal(buf.Bytes(), &out)

if err != nil {
Expand Down

0 comments on commit ecff640

Please sign in to comment.