From 75bee074b60737ef3183dd000663f227b1434e28 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Fri, 20 Oct 2023 16:52:48 -0700 Subject: [PATCH] fix: nil pointer dereference --- server/auth.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/auth.go b/server/auth.go index a717d91b..6b2376f2 100644 --- a/server/auth.go +++ b/server/auth.go @@ -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()