aboutsummaryrefslogtreecommitdiff
path: root/securecookie.go
diff options
context:
space:
mode:
authorKeunwoo Lee <keunwoo@flux.io>2015-07-27 20:27:54 +0300
committerKeunwoo Lee <keunwoo@flux.io>2015-07-27 20:27:54 +0300
commit8cd214031158fefb8faa539250849441807744fd (patch)
tree51c8907d98b234e63b0516c01289cd0b1b39a3f5 /securecookie.go
parentba5d1f998dfc2cd8dd155c61a23c9b2d728f243b (diff)
Move error type assertions to test file.
Per elithrar comment on PR 28: https://github.com/gorilla/securecookie/pull/28#discussion_r35059831
Diffstat (limited to 'securecookie.go')
-rw-r--r--securecookie.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/securecookie.go b/securecookie.go
index 970f7f7..7c05972 100644
--- a/securecookie.go
+++ b/securecookie.go
@@ -88,9 +88,6 @@ func (e cookieError) Error() string {
return strings.Join(parts, "")
}
-// Asserts that errorImpl is an Error implementation.
-var _ Error = errorImpl{}
-
var (
errGeneratingIV = cookieError{typ: internalError, msg: "failed to generate random iv"}
@@ -591,6 +588,3 @@ func (m MultiError) any(pred func(Error) bool) bool {
}
return false
}
-
-// Asserts that MultiError is an Error implementation.
-var _ Error = MultiError{}