Browse Source

Reduce lines of code.

Daniele Alessandri 14 years ago
parent
commit
f1488534b6
1 changed files with 1 additions and 5 deletions
  1. 1 5
      lib/Predis.php

+ 1 - 5
lib/Predis.php

@@ -119,11 +119,7 @@ class Client {
                 "Invalid connection alias: '$connectionAlias'"
                 "Invalid connection alias: '$connectionAlias'"
             );
             );
         }
         }
-
-        $newClient = new Client();
-        $newClient->setupClient($this->_options);
-        $newClient->setConnection($connection);
-        return $newClient;
+        return new Client($connection, $this->_options);
     }
     }
 
 
     public function connect() {
     public function connect() {