Skip to content

Commit 27fd338

Browse files
committed
Remove superfluous newlines in secure_cookie.go
Whitespace only change. I forgot to add this file when amending the commit.
1 parent 06d920f commit 27fd338

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

secure_cookie.go

-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ func (ctx *Context) SetSecureCookie(name string, val string, age int64) error {
2929
if len(serverConfig.CookieSecret) == 0 {
3030
return ErrMissingCookieSecret
3131
}
32-
3332
if len(serverConfig.encKey) == 0 || len(serverConfig.signKey) == 0 {
3433
return ErrInvalidKey
3534
}
@@ -48,12 +47,10 @@ func (ctx *Context) GetSecureCookie(name string) (string, bool) {
4847
if cookie.Name != name {
4948
continue
5049
}
51-
5250
parts := strings.SplitN(cookie.Value, "|", 2)
5351
if len(parts) != 2 {
5452
return "", false
5553
}
56-
5754
ciphertext, err := base64.StdEncoding.DecodeString(parts[0])
5855
if err != nil {
5956
return "", false

0 commit comments

Comments
 (0)