Cleanup cruft

This commit is contained in:
Richard Lewis 2017-02-16 13:52:55 +00:00
parent 5e63dffd1b
commit b8c578e6fb
1 changed files with 1 additions and 5 deletions

View File

@ -418,15 +418,11 @@ func (cli *Client) SetAvatarURL(url string) (err error) {
s := struct {
AvatarURL string `json:"avatar_url"`
}{url}
res, err := cli.MakeRequest("PUT", urlPath, &s, nil)
_, err = cli.MakeRequest("PUT", urlPath, &s, nil)
if err != nil {
return err
}
if err = json.Unmarshal(res, &s); err != nil {
return err
}
return nil
}