Skip to content

Commit 48b7278

Browse files
committed
Remove nil/null reply description from ZADD command
This command doesn't return nil/null reply even if the NX/XX/LT/GT options are conflict; in that case, it returns the error reply like the following: ``` zadd z XX NX 1 foo -ERR XX and NX options at the same time are not compatible zadd z NX GT 1 foo -ERR GT, LT, and/or NX options at the same time are not compatible zadd z LT GT 1 foo -ERR GT, LT, and/or NX options at the same time are not compatible ``` Signed-off-by: moznion <[email protected]>
1 parent 6a53fb7 commit 48b7278

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

resp2_replies.json

-1
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,6 @@
12041204
],
12051205
"ZADD": [
12061206
"Any of the following:",
1207-
"* [Nil reply](/docs/reference/protocol-spec#bulk-strings): if the operation was aborted because of a conflict with one of the _XX/NX/LT/GT_ options.",
12081207
"* [Integer reply](/docs/reference/protocol-spec#integers): the number of new members when the _CH_ option is not used.",
12091208
"* [Integer reply](/docs/reference/protocol-spec#integers): the number of new or updated members when the _CH_ option is used.",
12101209
"* [Bulk string reply](/docs/reference/protocol-spec#bulk-strings): the updated score of the member when the _INCR_ option is used."

resp3_replies.json

-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,6 @@
12691269
],
12701270
"ZADD": [
12711271
"Any of the following:",
1272-
"* [Null reply](/docs/reference/protocol-spec#nulls): if the operation was aborted because of a conflict with one of the _XX/NX/LT/GT_ options.",
12731272
"* [Integer reply](/docs/reference/protocol-spec#integers): the number of new members when the _CH_ option is not used.",
12741273
"* [Integer reply](/docs/reference/protocol-spec#integers): the number of new or updated members when the _CH_ option is used.",
12751274
"* [Double reply](/docs/reference/protocol-spec#doubles): the updated score of the member when the _INCR_ option is used."

0 commit comments

Comments
 (0)