mirror of
https://github.com/matrix-org/gomatrix
synced 2025-05-12 10:41:44 +00:00
Cleanup cruft
This commit is contained in:
parent
5e63dffd1b
commit
b8c578e6fb
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue