Преглед на файлове

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.
 // err is not equal to nil, then Ints returns nil, err.
 func Ints(reply interface{}, err error) ([]int, error) {
 func Ints(reply interface{}, err error) ([]int, error) {
 	var ints []int
 	var ints []int
-	if reply == nil {
-		return ints, ErrNil
-	}
 	values, err := Values(reply, err)
 	values, err := Values(reply, err)
 	if err != nil {
 	if err != nil {
 		return ints, err
 		return ints, err