Skip to content

Commit

Permalink
ignore nil error
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Apr 8, 2017
1 parent 23ab192 commit 55a1027
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cache/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ func (cache *Cache) GetMulti(keys []*datastore.Key, dst interface{}) error {
}
for i := range keys {
b, err := redis.Bytes(db.Receive())
if err == redis.ErrNil {
continue
}
if err != nil {
return err
}
Expand Down

0 comments on commit 55a1027

Please sign in to comment.