Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyang426 committed Jul 10, 2024
1 parent 648c6bd commit a01c008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ bool SortCmd::DoInitial(PClient* client) {
} else if (strcasecmp(client->argv_[i].data(), "alpha") == 0) {
alpha_ = 1;
} else if (strcasecmp(client->argv_[i].data(), "limit") == 0 && leftargs >= 2) {
if (pstd::String2int(client->argv_[i + 1], &offset_) == 0 || pstd::String2int(client->argv_[i + 2], &count_) == 0) {
if (pstd::String2int(client->argv_[i + 1], &offset_) == 0 ||
pstd::String2int(client->argv_[i + 2], &count_) == 0) {
client->SetRes(CmdRes::kSyntaxErr);
return false;
}
Expand Down

0 comments on commit a01c008

Please sign in to comment.