Skip to content

Commit

Permalink
fix compile bug (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 authored Jul 9, 2023
1 parent e306091 commit bfb8a75
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pika_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ void LPopCmd::Do(std::shared_ptr<Slot> slot) {
for (const auto& element : elements) {
res_.AppendString(element);
}
RemKeyNotExists("l", key_, slot);
} else if (s.IsNotFound()) {
res_.AppendStringLen(-1);
} else {
Expand Down Expand Up @@ -205,7 +204,6 @@ void LRemCmd::Do(std::shared_ptr<Slot> slot) {
rocksdb::Status s = slot->db()->LRem(key_, count_, value_, &res);
if (s.ok() || s.IsNotFound()) {
res_.AppendInteger(res);
RemKeyNotExists("l", key_, slot);
} else {
res_.SetRes(CmdRes::kErrOther, s.ToString());
}
Expand Down Expand Up @@ -290,7 +288,6 @@ void RPopCmd::Do(std::shared_ptr<Slot> slot) {
for (const auto& element : elements) {
res_.AppendString(element);
}
RemKeyNotExists("l", key_, slot);
} else if (s.IsNotFound()) {
res_.AppendStringLen(-1);
} else {
Expand Down

0 comments on commit bfb8a75

Please sign in to comment.