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