diff options
author | Jonathan Gillham <jonathan.gillham@gamil.com> | 2013-10-25 14:01:54 +0400 |
---|---|---|
committer | Jonathan Gillham <jonathan.gillham@gamil.com> | 2013-10-25 14:01:54 +0400 |
commit | b5d868122c68458b92558e9239d6225af9106b52 (patch) | |
tree | dbfb535b7b2a2a0f7d76fb5efe2d160f3e9d2580 | |
parent | 43ff70ebcff1674fba9aff126178f93076b32718 (diff) |
Revert "Proposed change to Registry.Get function when CookieStore.New produces"
This reverts commit 43ff70ebcff1674fba9aff126178f93076b32718.
-rw-r--r-- | sessions.go | 4 |
1 files changed, 1 insertions, 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} } |