From d6b71fea2a2fbfe86e450f2a91b79dd5275a6098 Mon Sep 17 00:00:00 2001 From: Anuragkillswitch <70265851+Anuragkillswitch@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:43:47 +0530 Subject: [PATCH] fix: remove extra condition for forceLusterClient --- rueidis.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/rueidis.go b/rueidis.go index da2a2a0d..33e37712 100644 --- a/rueidis.go +++ b/rueidis.go @@ -377,9 +377,6 @@ func NewClient(option ClientOption) (client Client, err error) { }, nil } return singleClt, nil - } - if option.ForceClusterClient { - } if client, err = newClusterClient(&option, makeConn); err != nil { if client == (*clusterClient)(nil) && option.ForceClusterClient {