summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gillham <jonathan.gillham@gamil.com>2013-10-25 14:01:54 +0400
committerJonathan Gillham <jonathan.gillham@gamil.com>2013-10-25 14:01:54 +0400
commitb5d868122c68458b92558e9239d6225af9106b52 (patch)
treedbfb535b7b2a2a0f7d76fb5efe2d160f3e9d2580
parent43ff70ebcff1674fba9aff126178f93076b32718 (diff)
Revert "Proposed change to Registry.Get function when CookieStore.New produces"
This reverts commit 43ff70ebcff1674fba9aff126178f93076b32718.
-rw-r--r--sessions.go4
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}
}