From b90314588fc4863f2fdb6bec0a46d48385c66994 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 8 Nov 2011 11:26:06 +0100 Subject: [PATCH] useless double if removed. --- src/networking.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/networking.c b/src/networking.c index 3e698cd5..edd7891d 100644 --- a/src/networking.c +++ b/src/networking.c @@ -774,11 +774,10 @@ int processMultibulkBuffer(redisClient *c) { * avoiding a large copy of data. */ c->querybuf = sdsrange(c->querybuf,pos,-1); pos = 0; - } - /* Hint the sds library about the amount of bytes this string is - * going to contain. */ - if (ll >= REDIS_MBULK_BIG_ARG) + /* Hint the sds library about the amount of bytes this string is + * going to contain. */ c->querybuf = sdsMakeRoomFor(c->querybuf,ll+2); + } c->bulklen = ll; } -- 2.47.2