handle profile updates correctly

This commit is contained in:
stryan 2021-03-31 16:15:36 -04:00
parent 2624034fd7
commit 9be48a061e
1 changed files with 1 additions and 2 deletions

View File

@ -31,9 +31,8 @@ func profileEdit(res http.ResponseWriter, req *http.Request) {
log.Printf("Error updating user account: %v\n", err)
http.Error(res, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
return
} else {
http.Redirect(res, req, "/profile/view", 303)
}
}
http.Redirect(res, req, "/profile/view", 303)
return
}