mirror of https://github.com/matrix-org/gomatrix
Cleanup cruft
This commit is contained in:
parent
5e63dffd1b
commit
b8c578e6fb
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue