diff --git a/rpcclient.go b/rpcclient.go
index <HASH>..<HASH> 100644
--- a/rpcclient.go
+++ b/rpcclient.go
@@ -81,10 +81,7 @@ func NewRpcClient(transport, addr string, connectAttempts, reconnects int, codec
 		}
 		time.Sleep(delay())
 	}
-	if err != nil {
-		return nil, err
-	}
-	return rpcClient, nil
+	return rpcClient, err
 }
 
 type RpcClient struct {
NewRpcClient should also return the client in case of errors so we can use it in upper layers