From 49718c1aa1aa2a5d85c7c688075f1949c5e4145a Mon Sep 17 00:00:00 2001 From: Stepan Bagritsevich Date: Wed, 11 Dec 2024 14:37:08 +0400 Subject: [PATCH] refactor: address comments Signed-off-by: Stepan Bagritsevich --- src/server/search/search_family.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/search/search_family.cc b/src/server/search/search_family.cc index 2f5f9707063e..75ca1f249e43 100644 --- a/src/server/search/search_family.cc +++ b/src/server/search/search_family.cc @@ -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();