diff --git a/src/app/AttributePathExpandIterator.cpp b/src/app/AttributePathExpandIterator.cpp index 052ea80af0b634..b9f822226ae5a8 100644 --- a/src/app/AttributePathExpandIterator.cpp +++ b/src/app/AttributePathExpandIterator.cpp @@ -93,7 +93,7 @@ std::optional AttributePathExpandIterator::NextAttributeId(SearchSe auto id = session.attributes->Next(); if (id.has_value()) { - return *id; + return id; } // Finished the data model, start with global attributes