From b5d868122c68458b92558e9239d6225af9106b52 Mon Sep 17 00:00:00 2001 From: Jonathan Gillham Date: Fri, 25 Oct 2013 11:01:54 +0100 Subject: Revert "Proposed change to Registry.Get function when CookieStore.New produces" This reverts commit 43ff70ebcff1674fba9aff126178f93076b32718. --- sessions.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sessions.go b/sessions.go index 72b6ecb..53111b3 100644 --- a/sessions.go +++ b/sessions.go @@ -144,9 +144,7 @@ func (s *Registry) Get(store Store, name string) (session *Session, err error) { if info, ok := s.sessions[name]; ok { session, err = info.s, info.e } else { - if session, err = store.New(s.request, name); err != nil { - return - } + session, err = store.New(s.request, name) session.name = name s.sessions[name] = sessionInfo{s: session, e: err} } -- cgit v1.2.3