소스 검색

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");
     }