Skip to content

Commit

Permalink
minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Oct 10, 2024
1 parent 0aefb24 commit 5e49c72
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,11 @@ protected function getConnection()
$this->_redisOptions["timeout"],
'launchdarkly/php-server-sdk-redis-phpredis'
);
if (
$this->_redisOptions['password'] !== null &&
$this->_redisOptions['password' !== '']
) {

if ($this->_redisOptions['password']) {
$redis->auth($this->_redisOptions['password']);
}

return $this->_redisInstance = $redis;
}
}

0 comments on commit 5e49c72

Please sign in to comment.