Unverified Commit 0d6342a8 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #863 from jmorganca/mxyng/nil-pointer

fix: nil pointer dereference
parents 533d7636 75bee074
......@@ -106,6 +106,7 @@ func getAuthToken(ctx context.Context, redirData AuthRedirect) (string, error) {
resp, err := makeRequest(ctx, "GET", redirectURL, headers, nil, nil)
if err != nil {
log.Printf("couldn't get token: %q", err)
return "", err
}
defer resp.Body.Close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment