From 09a845855f68f29db46e360380275471918f19c4 Mon Sep 17 00:00:00 2001 From: rng-dynamics <73444470+rng-dynamics@users.noreply.github.com> Date: Tue, 17 Nov 2020 16:01:45 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michael Muré --- bridge/github/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge/github/config.go b/bridge/github/config.go index 2f9b8b0a942c798b82d73fcb03194d47b62e5151..1f9cd3848e2feb208916fafcc7670d4fa7d7279f 100644 --- a/bridge/github/config.go +++ b/bridge/github/config.go @@ -216,7 +216,7 @@ func requestUserVerificationCode(scope string) (map[string]string, error) { } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return nil, fmt.Errorf("unexpected response status code from Github API:", resp.StatusCode) + return nil, fmt.Errorf("unexpected response status code %d from Github API", resp.StatusCode) } data, err := ioutil.ReadAll(resp.Body) if err != nil { @@ -257,7 +257,7 @@ func pollGithubForAuthorization(deviceCode string, intervalSec int64) (string, e } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return "", fmt.Errorf("unexpected response status code from Github API:", resp.StatusCode) + return "", fmt.Errorf("unexpected response status code %d from Github API", resp.StatusCode) } data, err := ioutil.ReadAll(resp.Body) if err != nil {