Skip to content

Commit

Permalink
refine conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
171930433 committed Jun 26, 2024
1 parent 06802ee commit d40ab66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iguana/dynamic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct base_impl : public base {
[&](auto const& field) {
std::string_view const current_name{field.field_name.data(),
field.field_name.size()};
if (vec.empty() || (!vec.empty() && (vec.back() != current_name))) {
if (vec.empty() || (vec.back() != current_name)) {
vec.push_back(current_name);
}
},
Expand Down

0 comments on commit d40ab66

Please sign in to comment.