From ab30060a6ed10aca62d8efe9f96c2b7ec05e70f6 Mon Sep 17 00:00:00 2001 From: git-hulk Date: Wed, 31 Jan 2024 09:58:40 +0800 Subject: Fix review comments --- hiredis.c | 1 - read.c | 2 +- 2 files changed, 1 insertion(+), 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); -- cgit v1.2.3