From 5e49c728d9bfdf20452d19e20785302bcf7a9d59 Mon Sep 17 00:00:00 2001 From: Matthew Keeler Date: Thu, 10 Oct 2024 10:29:38 -0400 Subject: [PATCH] minor tweak --- .../Impl/Integrations/PHPRedisFeatureRequester.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php b/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php index 18fb365..4be9bd0 100644 --- a/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php +++ b/src/LaunchDarkly/Impl/Integrations/PHPRedisFeatureRequester.php @@ -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; } }