diff options
author | Kamil Kisiel <kamil@kamilkisiel.net> | 2015-03-27 18:31:09 +0300 |
---|---|---|
committer | Kamil Kisiel <kamil@kamilkisiel.net> | 2015-03-27 18:31:09 +0300 |
commit | 3609df1fc5239640480fb2c99701e56031de3c3d (patch) | |
tree | 51a462d13e05422ef1cc2f5eebd594958eee687f | |
parent | 5d52df36299330b8295dde2dac4a4feac18381f1 (diff) |
Revert "Commenting retErr and setErr in Decode"
This reverts commit c7a729999d0c3e51964bd30c05547fac82f6527d.
-rw-r--r-- | securecookie.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/securecookie.go b/securecookie.go index 99be197..5580507 100644 --- a/securecookie.go +++ b/securecookie.go @@ -177,12 +177,7 @@ func (s *SecureCookie) Encode(name string, value interface{}) (string, error) { // it was stored. The value argument is the encoded cookie value. The dst // argument is where the cookie will be decoded. It must be a pointer. func (s *SecureCookie) Decode(name, value string, dst interface{}) error { - // retErr is the error which will be returned. - // It will be the first error that will occur (if any). var retErr error - - // setErr saves the error only if there was no previous error. - // Otherwise retErr would be overwritten by subsequent errors. setErr := func(err error) { if retErr == nil { retErr = err |