aboutsummaryrefslogtreecommitdiff
path: root/securecookie.go
diff options
context:
space:
mode:
authorKamil Kisiel <kamil@kamilkisiel.net>2015-03-27 18:31:06 +0300
committerKamil Kisiel <kamil@kamilkisiel.net>2015-03-27 18:31:06 +0300
commit5d52df36299330b8295dde2dac4a4feac18381f1 (patch)
tree79703b89ef56e738708a82650aa2b594893f093b /securecookie.go
parenta54a6f264e283c7afd37f9d7a772965e7a72408c (diff)
Revert "A few more comments on decoding."
This reverts commit a54a6f264e283c7afd37f9d7a772965e7a72408c.
Diffstat (limited to 'securecookie.go')
-rw-r--r--securecookie.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/securecookie.go b/securecookie.go
index a4e0770..99be197 100644
--- a/securecookie.go
+++ b/securecookie.go
@@ -183,9 +183,6 @@ func (s *SecureCookie) Decode(name, value string, dst interface{}) error {
// setErr saves the error only if there was no previous error.
// Otherwise retErr would be overwritten by subsequent errors.
- // This is used so that a nearly-same codepath is taken on each
- // decode to help reduce the possibility of timing attacks.
- // See #15 for details.
setErr := func(err error) {
if retErr == nil {
retErr = err