lib/ldclient-rb/impl/integrations/redis_impl.rb in launchdarkly-server-sdk-7.3.3 vs lib/ldclient-rb/impl/integrations/redis_impl.rb in launchdarkly-server-sdk-8.0.0
- old
+ new
@@ -110,10 +110,10 @@
end
@pool = create_redis_pool(opts)
# shutdown pool on close unless the client passed a custom pool and specified not to shutdown
- @pool_shutdown_on_close = !opts[:pool] || opts.fetch(:pool_shutdown_on_close, true)
+ @pool_shutdown_on_close = (!opts[:pool] || opts.fetch(:pool_shutdown_on_close, true))
@prefix = opts[:prefix] || LaunchDarkly::Integrations::Redis::default_prefix
@logger = opts[:logger] || Config.default_logger
@test_hook = opts[:test_hook] # used for unit tests, deliberately undocumented