Remove redundant statement in config.c.

Thanks to @guybe7 for spotting the error in the original PR I merged.
This commit is contained in:
antirez 2019-09-20 11:44:32 +02:00
parent 5cb591ca40
commit e7444fde2d

View File

@ -671,8 +671,9 @@ void loadServerConfigFromString(char *config) {
} else if (!strcasecmp(argv[0],"lua-time-limit") && argc == 2) { } else if (!strcasecmp(argv[0],"lua-time-limit") && argc == 2) {
server.lua_time_limit = strtoll(argv[1],NULL,10); server.lua_time_limit = strtoll(argv[1],NULL,10);
} else if (!strcasecmp(argv[0],"lua-replicate-commands") && argc == 2) { } 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]))
if ((server.lua_always_replicate_commands = yesnotoi(argv[1])) == -1) { == -1)
{
err = "argument must be 'yes' or 'no'"; goto loaderr; err = "argument must be 'yes' or 'no'"; goto loaderr;
} }
} else if (!strcasecmp(argv[0],"slowlog-log-slower-than") && } else if (!strcasecmp(argv[0],"slowlog-log-slower-than") &&