浏览代码

Fix bux causing Ints call to swallow error returned from the connection object

Maciej Galkowski 10 年之前
父节点
当前提交
7010c1c88b
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      redis/reply.go

+ 0 - 3
redis/reply.go

@@ -275,9 +275,6 @@ func Strings(reply interface{}, err error) ([]string, error) {
 // err is not equal to nil, then Ints returns nil, err.
 func Ints(reply interface{}, err error) ([]int, error) {
 	var ints []int
-	if reply == nil {
-		return ints, ErrNil
-	}
 	values, err := Values(reply, err)
 	if err != nil {
 		return ints, err