From 0cd4efc8d81d33773fe1e468d39a556a15d268df Mon Sep 17 00:00:00 2001 From: Martin Thielecke Date: Sat, 9 May 2020 22:34:48 +0200 Subject: [PATCH] remove needless redirect --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 2ae5229..54a3089 100644 --- a/main.go +++ b/main.go @@ -94,7 +94,6 @@ func twitchAuthToToken(state string, code string, w http.ResponseWriter, r *http token, err := twitchOauthConfig.Exchange(timeoutCtx, code, oauth2.AccessTypeOffline) if err != nil { - http.Redirect(w, r, "/", http.StatusTemporaryRedirect) log.WithError(err).Error("code exchange failed") return }