remove needless redirect

This commit is contained in:
Martin Thielecke 2020-05-09 22:34:48 +02:00
parent c1ceb010b9
commit 0cd4efc8d8
Signed by: mthie
GPG Key ID: D1D25A85C8604DFB

View File

@ -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
}