fix the format
Signed-off-by: xhe <xw897002528@gmail.com>
This commit is contained in:
parent
fae5ceef2a
commit
e6c1aeaf08
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user