Skip to content

Commit c219ef8

Browse files
committed
remove not required param check
1 parent 14f173f commit c219ef8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

RedisConnectionFactory.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ public function __construct($config = 'redis:')
5050
}
5151

5252
$this->config = array_replace($this->defaultConfig(), $config);
53-
if (isset($this->config['vendor'])) {
54-
$vendor = $this->config['vendor'];
55-
} else {
56-
$vendor = "";
57-
}
53+
$vendor = $this->config['vendor'];
5854

5955
$supportedVendors = ['predis', 'phpredis', 'custom'];
6056
if (false == in_array($vendor, $supportedVendors, true)) {

0 commit comments

Comments
 (0)