Skip to content

Commit

Permalink
redis-cli: fix #5096 double error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Jul 9, 2018
1 parent 8462032 commit 18d6584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redis-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ static void cliInitHelp(void) {
* entries with additional entries obtained using the COMMAND command
* available in recent versions of Redis. */
static void cliIntegrateHelp(void) {
if (cliConnect(0) == REDIS_ERR) return;
if (cliConnect(CC_QUIET) == REDIS_ERR) return;

redisReply *reply = redisCommand(context, "COMMAND");
if(reply == NULL || reply->type != REDIS_REPLY_ARRAY) return;
Expand Down

0 comments on commit 18d6584

Please sign in to comment.