From 5bf942e42ce4f6c21a201e2119c90675451d2363 Mon Sep 17 00:00:00 2001 From: ggivo Date: Wed, 4 Dec 2024 11:54:32 +0200 Subject: [PATCH] Update src/test/java/redis/clients/jedis/EndpointConfig.java Co-authored-by: M Sazzadul Hoque <7600764+sazzad16@users.noreply.github.com> --- src/test/java/redis/clients/jedis/EndpointConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/redis/clients/jedis/EndpointConfig.java b/src/test/java/redis/clients/jedis/EndpointConfig.java index 447f0dcd67..866f9b67f9 100644 --- a/src/test/java/redis/clients/jedis/EndpointConfig.java +++ b/src/test/java/redis/clients/jedis/EndpointConfig.java @@ -123,7 +123,7 @@ public DefaultJedisClientConfig.Builder getClientConfigBuilder() { DefaultJedisClientConfig.Builder builder = DefaultJedisClientConfig.builder() .password(password).ssl(tls); - if (tls & environment != null) { + if (tls && environment != null) { builder.sslSocketFactory(TlsUtil.sslSocketFactoryForEnv(environment)); }