1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 07:40:54 +00:00

hotfix: err nil

This commit is contained in:
astaxie 2017-05-02 12:47:15 +08:00
parent 7452151bee
commit 83814a76cc

View File

@ -179,7 +179,7 @@ func (rp *Provider) SessionRead(sid string) (session.Store, error) {
var kv map[interface{}]interface{}
kvs, err := redis.String(c.Do("GET", sid))
if err != redis.ErrNil {
if err != nil && err != redis.ErrNil {
return nil, err
}
if len(kvs) == 0 {