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

fix: nil pointer dereference
This commit is contained in:
Michael Yang 2023-10-20 17:23:37 -07:00 committed by GitHub
commit 0d6342a882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()