diff --git a/src/sentinel.c b/src/sentinel.c index 0ef8703bb6..00884ee848 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -1946,9 +1946,9 @@ const char *sentinelHandleConfiguration(char **argv, int argc) { if ((sentinel.announce_hostnames = yesnotoi(argv[1])) == -1) { return "Please specify yes or no for the announce-hostnames option."; } - } else if ((!strcasecmp(argv[0], "primary-reboot-down-after-period") || - !strcasecmp(argv[0], "master-reboot-down-after-period")) && - argc == 3) { + } else if ((!strcasecmp(argv[0], "primary-reboot-down-after-period") || + !strcasecmp(argv[0], "master-reboot-down-after-period")) && + argc == 3) { /* primary-reboot-down-after-period */ ri = sentinelGetPrimaryByName(argv[1]); if (!ri) return "No such master with specified name."; @@ -4251,9 +4251,9 @@ void sentinelSetCommand(client *c) { dictAdd(ri->renamed_commands, oldname, newname); } changes++; - } else if ((!strcasecmp(option, "primary-reboot-down-after-period") || - !strcasecmp(option, "master-reboot-down-after-period")) && - moreargs > 0) { + } else if ((!strcasecmp(option, "primary-reboot-down-after-period") || + !strcasecmp(option, "master-reboot-down-after-period")) && + moreargs > 0) { /* primary-reboot-down-after-period */ robj *o = c->argv[++j]; if (getLongLongFromObject(o, &ll) == C_ERR || ll < 0) {