@@ -95,21 +95,18 @@ template <typename CompType> void process_buffer_span(auto const& all_spans, Upd
95
95
if (all_spans.empty ()) {
96
96
properties.update_ids_match = true ;
97
97
return ;
98
- } else {
99
- // Remember the begin iterator of the first scenario, then loop over the remaining scenarios and
100
- // check the ids
101
- auto const first_span = all_spans[0 ];
102
- // check the subsequent scenarios
103
- // only return true if all scenarios match the ids of the first batch
104
- properties.update_ids_match =
105
- std::ranges::all_of (all_spans.cbegin () + 1 , all_spans.cend (), [&first_span](auto const & current_span) {
106
- return std::ranges::equal (
107
- current_span, first_span,
108
- [](typename CompType::UpdateType const & obj, typename CompType::UpdateType const & first) {
109
- return obj.id == first.id ;
110
- });
111
- });
112
98
}
99
+ // Remember the begin iterator of the first scenario, then loop over the remaining scenarios and
100
+ // check the ids
101
+ auto const first_span = all_spans[0 ];
102
+ // check the subsequent scenarios
103
+ // only return true if all scenarios match the ids of the first batch
104
+ properties.update_ids_match =
105
+ std::ranges::all_of (all_spans.cbegin () + 1 , all_spans.cend (), [&first_span](auto const & current_span) {
106
+ return std::ranges::equal (current_span, first_span,
107
+ [](typename CompType::UpdateType const & obj,
108
+ typename CompType::UpdateType const & first) { return obj.id == first.id ; });
109
+ });
113
110
}
114
111
115
112
template <class CompType >
0 commit comments