diff --git a/cmd/frontend/sessions.go b/cmd/frontend/sessions.go index e546a8c..6cdad3f 100644 --- a/cmd/frontend/sessions.go +++ b/cmd/frontend/sessions.go @@ -1,7 +1,6 @@ package frontend import ( - "errors" "fmt" "html/template" "log" @@ -41,7 +40,6 @@ func getSession(w http.ResponseWriter, r *http.Request, c *b.Config, s *b.Cookie session := &b.Session{Session: *tmpSession} if session.IsNew { template.Must(tmpl, tmplErr).ExecuteTemplate(w, "page-content", msg) - return session, errors.New("error: no existing session") } return session, nil