Commit fb9c1c3d authored by antirez's avatar antirez
Browse files

Simplify XADD ID syntax error code path,.

parent a60f553b
......@@ -1063,12 +1063,9 @@ void xaddCommand(client *c) {
maxlen_arg_idx = i;
} else {
/* If we are here is a syntax error or a valid ID. */
if (streamParseIDOrReply(c,c->argv[i],&id,0) == C_OK) {
id_given = 1;
break;
} else {
return;
}
if (streamParseIDOrReply(c,c->argv[i],&id,0) != C_OK) return;
id_given = 1;
break;
}
}
int field_pos = i+1;
......
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