Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuecai committed Aug 1, 2024
1 parent ab864d3 commit 7743948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd_thread_pool_worker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ void CmdWorkThreadPoolWorker::Work() {
auto [cmdPtr, ret] = cmd_table_manager_.GetCommand(task->CmdName(), task->Client().get());

if (!cmdPtr) {
if(ret == CmdRes::kUnknownCmd) {
if (ret == CmdRes::kUnknownCmd) {
task->Client()->SetRes(CmdRes::kErrOther, "unknown command '" + task->CmdName() + "'");
} else if(ret == CmdRes::kUnknownSubCmd) {
} else if (ret == CmdRes::kUnknownSubCmd) {
task->Client()->SetRes(CmdRes::kErrOther, "unknown sub command '" + task->Client().get()->argv_[1] + "'");
} else {
task->Client()->SetRes(CmdRes::kInvalidParameter);
Expand Down

0 comments on commit 7743948

Please sign in to comment.