Apply suggestions from code review

Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
李扬 2023-11-02 10:30:14 +08:00 committed by GitHub
parent dc897215da
commit c899ff9da2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,9 +779,7 @@ static const orc::Type * traverseDownORCTypeByName(
if (orc::STRUCT == orc_type->getKind())
{
auto next_type_and_target = search_struct_field(target, orc_type);
const auto & next_target = next_type_and_target.first;
const auto * next_orc_type = next_type_and_target.second;
const auto [next_target, next_orc_type]= search_struct_field(target, orc_type);
return next_orc_type ? traverseDownORCTypeByName(next_target, next_orc_type, type, ignore_case) : nullptr;
}
else if (orc::LIST == orc_type->getKind())