From dcc6f036c626d86ff4606e7e5e3f708a39315ad6 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 25 Sep 2023 15:31:31 -0400 Subject: [PATCH] Clean up commented-out code --- email.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/email.go b/email.go index 7638432..54ca48a 100644 --- a/email.go +++ b/email.go @@ -140,16 +140,6 @@ func handleCreateEmailSubscription(app *App, w http.ResponseWriter, r *http.Requ return impart.HTTPError{http.StatusFound, from} } - // Do email validation - // TODO: move this to an AJAX call before submitting email address, so we can immediately show errors to user - /* - err := validate(ss.Email) - if err != nil { - addSessionFlash(w, r, err.Error(), nil) - return impart.HTTPError{http.StatusFound, from} - } - */ - confirmed := app.db.IsSubscriberConfirmed(ss.Email) es, err := app.db.AddEmailSubscription(c.ID, ss.UserID, ss.Email, confirmed) if err != nil {