diff --git a/src/cmd_kv.cc b/src/cmd_kv.cc index 1e3b973..857772c 100644 --- a/src/cmd_kv.cc +++ b/src/cmd_kv.cc @@ -683,9 +683,9 @@ void SetRangeCmd::DoCmd(PClient* client) { return; } // Ref: https://redis.io/docs/latest/commands/setrange/ - if (g_config.redis_compatible_mode && std::atoi(client->argv_[2].c_str()) > 536870911) - { - client->SetRes(CmdRes::kErrOther, "When Redis compatibility mode is enabled, the offset parameter must not exceed 536870911"); + if (g_config.redis_compatible_mode && std::atoi(client->argv_[2].c_str()) > 536870911) { + client->SetRes(CmdRes::kErrOther, + "When Redis compatibility mode is enabled, the offset parameter must not exceed 536870911"); return; } int32_t ret = 0;