summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
diff options
context:
space:
mode:
authorhouzj.fnst <63178771+sherlockcpp@users.noreply.github.com>2021-01-14 04:00:55 +0800
committerGitHub <noreply@github.com>2021-01-13 12:00:55 -0800
commitf5577fdbd8898112427e5807edf102f9fcd9da33 (patch)
tree869b3a3d7fb8fa8c9c5778cab9158a4d97d251e3 /src/redis-cli.c
parent8a81ed1b5ab204fd33651bf448cd5e1230631fb7 (diff)
downloadredis-f5577fdbd8898112427e5807edf102f9fcd9da33.tar.gz
remove some unnecessary checks (#7431)
Remove several checks that always evaluate to true.
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r--src/redis-cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index 31d2360c9..2e8984c71 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -5301,7 +5301,7 @@ static clusterManagerNode *clusterNodeForResharding(char *id,
clusterManagerLogErr(invalid_node_msg, id);
*raise_err = 1;
return NULL;
- } else if (node != NULL && target != NULL) {
+ } else if (target != NULL) {
if (!strcmp(node->name, target->name)) {
clusterManagerLogErr( "*** It is not possible to use "
"the target node as "