1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 02:40:17 +00:00

golint session

This commit is contained in:
astaxie
2015-09-12 22:53:55 +08:00
parent ea2039c1dc
commit 172894efe8
13 changed files with 336 additions and 339 deletions

View File

@ -178,11 +178,11 @@ func decodeCookie(block cipher.Block, hashKey, name, value string, gcmaxlifetime
return nil, err
}
// 5. DecodeGob.
if dst, err := DecodeGob(b); err != nil {
dst, err := DecodeGob(b)
if err != nil {
return nil, err
} else {
return dst, nil
}
return dst, nil
}
// Encoding -------------------------------------------------------------------