From 5e63dffd1b13567f89833864e42bb5ae2fe18f33 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 15 Feb 2017 23:11:12 +0000 Subject: [PATCH] Cleanup commented code --- client.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client.go b/client.go index 623a94b..896c3ba 100644 --- a/client.go +++ b/client.go @@ -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 }