Skip to content

Commit 5e49c72

Browse files
committed
minor tweak
1 parent 0aefb24 commit 5e49c72

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@ protected function getConnection()
6666
$this->_redisOptions["timeout"],
6767
'launchdarkly/php-server-sdk-redis-phpredis'
6868
);
69-
if (
70-
$this->_redisOptions['password'] !== null &&
71-
$this->_redisOptions['password' !== '']
72-
) {
69+
70+
if ($this->_redisOptions['password']) {
7371
$redis->auth($this->_redisOptions['password']);
7472
}
73+
7574
return $this->_redisInstance = $redis;
7675
}
7776
}

0 commit comments

Comments
 (0)