瀏覽代碼

Apply minor change.

Daniele Alessandri 14 年之前
父節點
當前提交
94d0805cf6
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/Predis/Client.php

+ 1 - 2
lib/Predis/Client.php

@@ -32,8 +32,7 @@ class Client {
             return new ClientOptions(array('profile' => $options));
         }
         if (is_string($options)) {
-            $profile = ServerProfile::get($options);
-            return new ClientOptions(array('profile' => $profile));
+            return new ClientOptions(array('profile' => ServerProfile::get($options)));
         }
         throw new \InvalidArgumentException("Invalid type for client options");
     }