Skip to content

Commit

Permalink
Try to satisfy CodeCov
Browse files Browse the repository at this point in the history
  • Loading branch information
tcbrindle committed Aug 20, 2024
1 parent 300cc64 commit 5b1d9a4
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions include/flux/op/cartesian_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,7 @@ struct cartesian_traits_base_impl : default_sequence_traits {
static constexpr auto for_each_while(Self& self, Function&& func) -> cursor_t<Self>
requires (ReadKind == read_kind::map)
{
auto cur = first(self);
while (!is_last(self, cur)) {
if (!std::invoke(func, read_at(self, cur))) {
break;
}
inc(self, cur);
}
return cur;
return default_sequence_traits::for_each_while(self, FLUX_FWD(func));
}

};
Expand Down

0 comments on commit 5b1d9a4

Please sign in to comment.