mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:50:55 +00:00
hotfix: err nil
This commit is contained in:
parent
7452151bee
commit
83814a76cc
@ -179,7 +179,7 @@ func (rp *Provider) SessionRead(sid string) (session.Store, error) {
|
|||||||
var kv map[interface{}]interface{}
|
var kv map[interface{}]interface{}
|
||||||
|
|
||||||
kvs, err := redis.String(c.Do("GET", sid))
|
kvs, err := redis.String(c.Do("GET", sid))
|
||||||
if err != redis.ErrNil {
|
if err != nil && err != redis.ErrNil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if len(kvs) == 0 {
|
if len(kvs) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user