From 0da171b3a675ee0897e7d566a6dcefd02fb671c4 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Fri, 30 Nov 2018 12:05:46 +0800 Subject: [PATCH] remove useless tryObjectEncoding in debug assert --- src/debug.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 3cb567520..d9d53eab0 100644 --- a/src/debug.c +++ b/src/debug.c @@ -336,7 +336,6 @@ NULL zfree(ptr); addReply(c,shared.ok); } else if (!strcasecmp(c->argv[1]->ptr,"assert")) { - if (c->argc >= 3) c->argv[2] = tryObjectEncoding(c->argv[2]); serverAssertWithInfo(c,c->argv[0],1 == 2); } else if (!strcasecmp(c->argv[1]->ptr,"log") && c->argc == 3) { serverLog(LL_WARNING, "DEBUG LOG: %s", (char*)c->argv[2]->ptr);