Unverified Commit c07d3bd8 authored by xhe's avatar xhe Committed by GitHub
Browse files

simplify


Co-authored-by: default avatarOran Agra <oran@redislabs.com>
parent 456c347d
...@@ -2761,6 +2761,7 @@ NULL ...@@ -2761,6 +2761,7 @@ NULL
/* HELLO [protocol-version] [AUTH <user> <password>] [SETNAME <name>] */ /* HELLO [protocol-version] [AUTH <user> <password>] [SETNAME <name>] */
void helloCommand(client *c) { void helloCommand(client *c) {
long long ver = 0; long long ver = 0;
int next_arg = 1;
if (c->argc >= 2 && getLongLongFromObject(c->argv[1],&ver) == C_OK && if (c->argc >= 2 && getLongLongFromObject(c->argv[1],&ver) == C_OK &&
(ver < 2 || ver > 3)) { (ver < 2 || ver > 3)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment