Skip to content

Commit 06dc843

Browse files
authored
Merge branch 'master' into master
2 parents 11efc6c + b0ab46c commit 06dc843

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Phpfastcache/Drivers/Redis/Driver.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,8 @@ protected function driverConnect(): bool
107107
$this->instance->setOption(RedisClient::OPT_PREFIX, $this->getConfig()->getOptPrefix());
108108
}
109109

110-
if (!$this->getConfig()->getPath()) {
111-
if ($this->getConfig()->getPassword() && !$this->instance->auth($this->getConfig()->getPassword())) {
112-
return false;
113-
}
110+
if ($this->getConfig()->getPassword() && !$this->instance->auth($this->getConfig()->getPassword())) {
111+
return false;
114112
}
115113

116114
if ($this->getConfig()->getDatabase() !== null) {

0 commit comments

Comments
 (0)