Skip to content

Commit a733db3

Browse files
committed
ICM: Laravel 5.1+ support.
1 parent 6a7769b commit a733db3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Mutex.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ public function getStrategy()
5050
public function getRedisClient()
5151
{
5252
$connection = Redis::connection();
53-
if ($connection instanceof Client) {
54-
return $connection;
55-
}
56-
57-
return $connection->client();
53+
return ($connection instanceof Client) ? $connection : $connection->client();
5854
}
5955

6056
public function __call($method, $parameters)

0 commit comments

Comments
 (0)