mirror of https://github.com/matrix-org/gomatrix
Cleanup commented code
This commit is contained in:
parent
971abecece
commit
5e63dffd1b
|
@ -403,16 +403,12 @@ func (cli *Client) GetAvatarURL() (url string, err error) {
|
|||
s := struct {
|
||||
AvatarURL string `json:"avatar_url"`
|
||||
}{}
|
||||
// res, err := cli.MakeRequest("GET", urlPath, nil, &s)
|
||||
|
||||
_, err = cli.MakeRequest("GET", urlPath, nil, &s)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
// if err = json.Unmarshal(res, &s); err != nil {
|
||||
// return "", err
|
||||
// }
|
||||
|
||||
return s.AvatarURL, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue