mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 02:40:17 +00:00
golint session
This commit is contained in:
@ -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 -------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user