deleted redundant if.

This commit is contained in:
lhhxxxxx
2022-06-05 15:08:54 +08:00
parent 7aeb05ef61
commit 189d755c08

View File

@@ -16,9 +16,6 @@ asst::StartUpTask::StartUpTask(AsstCallback callback, void* callback_arg)
bool asst::StartUpTask::set_params(const json::value& params)
{
if (params.contains("server_type"))
{
m_start_game_task_ptr->set_param(static_cast<ServerType>(params.get("server_type", 0)));
}
m_start_game_task_ptr->set_param(static_cast<ServerType>(params.get("server_type", 0)));
return true;
}