summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit-hulk <hulk.website@gmail.com>2024-01-31 09:58:40 +0800
committerMichael Grunder <michael.grunder@gmail.com>2024-01-31 12:08:52 -0800
commitab30060a6ed10aca62d8efe9f96c2b7ec05e70f6 (patch)
treeb75333d5fd0daa68e157964b330bdb49bf0250f4
parent5b253d89c7cc9593723334e0a45077bd4008d3db (diff)
Fix review comments
-rw-r--r--hiredis.c1
-rw-r--r--read.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/hiredis.c b/hiredis.c
index 78b2837..739ce2a 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -217,7 +217,6 @@ static void *createIntegerObject(const redisReadTask *task, long long value) {
parent->type == REDIS_REPLY_MAP ||
parent->type == REDIS_REPLY_ATTR ||
parent->type == REDIS_REPLY_SET ||
- parent->type == REDIS_REPLY_SET ||
parent->type == REDIS_REPLY_PUSH);
parent->element[task->idx] = r;
}
diff --git a/read.c b/read.c
index fa40e61..ebbe02c 100644
--- a/read.c
+++ b/read.c
@@ -646,7 +646,7 @@ static int processItem(redisReader *r) {
return processBulkItem(r);
case REDIS_REPLY_ARRAY:
case REDIS_REPLY_MAP:
- case REDIS_REPLY_ATTR:
+ case REDIS_REPLY_ATTR:
case REDIS_REPLY_SET:
case REDIS_REPLY_PUSH:
return processAggregateItem(r);