chore: Remove unnecessary code in handleAdminDiscordLink function

This commit is contained in:
Frederico Santos 2024-09-01 03:48:34 +01:00
parent 2d166d44b7
commit 536568180e

View File

@ -666,12 +666,6 @@ func handleProviderLogout(w http.ResponseWriter, r *http.Request) {
}
func handleAdminDiscordLink(w http.ResponseWriter, r *http.Request) {
err := r.ParseForm()
if err != nil {
httpError(w, r, fmt.Errorf("failed to parse request form: %s", err), http.StatusBadRequest)
return
}
uuid, err := uuidFromRequest(r)
if err != nil {
httpError(w, r, err, http.StatusUnauthorized)