From cf4d4f151a6c262768ad73ff247303dc023ce4f9 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Fri, 4 Oct 2024 10:12:35 +0200 Subject: [PATCH] No session existing is not an error; fixed --- cmd/frontend/sessions.go | 2 -- 1 file changed, 2 deletions(-) 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