From 94d0805cf6137eea6640ae473ff37576fd3908a2 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Fri, 18 Mar 2011 15:13:52 +0100 Subject: [PATCH] Apply minor change. --- lib/Predis/Client.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Predis/Client.php b/lib/Predis/Client.php index 4ba8af64..10fcc0fb 100644 --- a/lib/Predis/Client.php +++ b/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"); }