fix the format

Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
xhe 2020-12-25 10:17:55 +08:00
parent fae5ceef2a
commit e6c1aeaf08

View File

@ -2765,9 +2765,9 @@ void helloCommand(client *c) {
if (c->argc >= 2) { if (c->argc >= 2) {
if (getLongLongFromObjectOrReply(c, c->argv[next_arg++], &ver, if (getLongLongFromObjectOrReply(c, c->argv[next_arg++], &ver,
"Protocol version is not an integer or out of range") != C_OK) { "Protocol version is not an integer or out of range") != C_OK) {
return; return;
} }
if (ver < 2 || ver > 3) { if (ver < 2 || ver > 3) {
addReplyError(c,"-NOPROTO unsupported protocol version"); addReplyError(c,"-NOPROTO unsupported protocol version");