Skip to content

Commit

Permalink
fix: remove extra condition for forceLusterClient
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulPancake committed Jul 1, 2024
1 parent d735d00 commit d6b71fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rueidis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d6b71fe

Please sign in to comment.