Skip to content

Commit

Permalink
refactor: address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Bagritsevich <[email protected]>
  • Loading branch information
BagritsevichStepan committed Dec 11, 2024
1 parent 049a2d8 commit 49718c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server/search/search_family.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1004,8 +1004,7 @@ void SearchFamily::FtAggregate(CmdArgList args, const CommandContext& cmd_cntx)
for (const auto& field : agg_results.fields_to_print) {
rb->SendBulkString(field);

auto it = value.find(field);
if (it != value.end()) {
if (auto it = value.find(field); it != value.end()) {
std::visit(sortable_value_sender, it->second);
} else {
rb->SendNull();
Expand Down

0 comments on commit 49718c1

Please sign in to comment.