Explorar el Código

Merge pull request #4467 from gyuho/f00

etcd-tester: fix wrong error checking
Gyu-Ho Lee hace 10 años
padre
commit
e9c0d5424a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/functional-tester/etcd-tester/tester.go

+ 1 - 1
tools/functional-tester/etcd-tester/tester.go

@@ -235,7 +235,7 @@ func (c *cluster) getKVHash() (map[string]int64, error) {
 		kvc := pb.NewKVClient(conn)
 		ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
 		resp, err := kvc.Hash(ctx, &pb.HashRequest{})
-		if resp != nil && err != nil {
+		if err != nil {
 			return nil, err
 		}
 		cancel()