Simplify XADD ID syntax error code path,.
This commit is contained in:
parent
a60f553b68
commit
fb9c1c3dbd
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user