mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 17:10:50 +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{}
|
||||
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user