Fix extra reply in debug sleep-after-fork-seconds error path (#810)

The getDoubleFromObjectOrReply already add the error reply when
C_ERR, remove this extra error reply.

Signed-off-by: Binbin <binloveplay1314@qq.com>
This commit is contained in:
Binbin 2024-07-23 12:48:23 +08:00 committed by GitHub
parent 5000c050b5
commit 9a7bf910cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -998,7 +998,6 @@ void debugCommand(client *c) {
} else if (!strcasecmp(c->argv[1]->ptr, "sleep-after-fork-seconds") && c->argc == 3) {
double sleep_after_fork_seconds;
if (getDoubleFromObjectOrReply(c, c->argv[2], &sleep_after_fork_seconds, NULL) != C_OK) {
addReply(c, shared.err);
return;
}
server.debug_sleep_after_fork_us = (int)(sleep_after_fork_seconds * 1e6);