File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,10 +194,10 @@ StatusOr<std::vector<int>> CommandTable::GetKeysFromCommand(const CommandAttribu
194194 std::vector<int > key_indexes;
195195
196196 attributes->ForEachKeyRange (
197- [&](const std::vector<std::string> &, CommandKeyRange key_range) {
198- key_range.ForEachKeyIndex ([&](int i) { key_indexes.push_back (i); }, cmd_tokens.size ());
197+ [&key_indexes, &cmd_tokens ](const std::vector<std::string> &, CommandKeyRange key_range) {
198+ key_range.ForEachKeyIndex ([&key_indexes ](int i) { key_indexes.push_back (i); }, cmd_tokens.size ());
199199 },
200- cmd_tokens, [&](const auto &) { has_key_args = false ; });
200+ cmd_tokens, [&has_key_args ](const auto &) { has_key_args = false ; });
201201
202202 if (!has_key_args) {
203203 return {Status::NotOK, " The command has no key arguments" };
You can’t perform that action at this time.
0 commit comments