From ed1605f14d1568095b8b8aee4dbad01932ea7427 Mon Sep 17 00:00:00 2001 From: devincd <505259926@qq.com> Date: Wed, 26 May 2021 01:32:27 +0800 Subject: [PATCH] delete unuseful code (#254) Signed-off-by: devincd <505259926@qq.com> --- src/redis/driver_impl.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/redis/driver_impl.go b/src/redis/driver_impl.go index 18e213f1b..f6449ea52 100644 --- a/src/redis/driver_impl.go +++ b/src/redis/driver_impl.go @@ -59,14 +59,10 @@ func NewClientImpl(scope stats.Scope, useTls bool, auth string, redisType string df := func(network, addr string) (radix.Conn, error) { var dialOpts []radix.DialOpt - var err error if useTls { dialOpts = append(dialOpts, radix.DialUseTLS(&tls.Config{})) } - if err != nil { - return nil, err - } if auth != "" { logger.Warnf("enabling authentication to redis on %s", url)