From 9be48a061ee7a149cc7206233c33a43240662d60 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 31 Mar 2021 16:15:36 -0400 Subject: [PATCH] handle profile updates correctly --- profile.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profile.go b/profile.go index 3c5f41d..d70310b 100644 --- a/profile.go +++ b/profile.go @@ -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 }