From 630638dcdeafd5b285b82c1e004abf690e620d67 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 20 Sep 2019 11:44:32 +0200 Subject: [PATCH] Remove redundant statement in config.c. Thanks to @guybe7 for spotting the error in the original PR I merged. --- src/config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.c b/src/config.c index ae4d4a0e6..fe002bac2 100644 --- a/src/config.c +++ b/src/config.c @@ -671,8 +671,9 @@ void loadServerConfigFromString(char *config) { } else if (!strcasecmp(argv[0],"lua-time-limit") && argc == 2) { server.lua_time_limit = strtoll(argv[1],NULL,10); } else if (!strcasecmp(argv[0],"lua-replicate-commands") && argc == 2) { - server.lua_always_replicate_commands = yesnotoi(argv[1]); - if ((server.lua_always_replicate_commands = yesnotoi(argv[1])) == -1) { + if ((server.lua_always_replicate_commands = yesnotoi(argv[1])) + == -1) + { err = "argument must be 'yes' or 'no'"; goto loaderr; } } else if (!strcasecmp(argv[0],"slowlog-log-slower-than") &&