Skip to content

Commit 49b9211

Browse files
style: pre-commit.ci fixes
1 parent 9ac9c1f commit 49b9211

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/CLI/impl/App_inl.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ CLI11_INLINE Option *App::add_option(std::string option_name,
170170
top_level_parent = top_level_parent->parent_;
171171
}
172172

173-
if(std::find_if(std::begin(options_), std::end(options_), [&myopt](const Option_p &v) {
174-
return *v == myopt;
175-
}) == std::end(options_)) {
173+
if(std::find_if(std::begin(options_), std::end(options_), [&myopt](const Option_p &v) { return *v == myopt; }) ==
174+
std::end(options_)) {
176175
if(myopt.lnames_.empty() && myopt.snames_.empty()) {
177176
// if the option is positional only there is additional potential for ambiguities in config files and needs
178177
// to be checked

0 commit comments

Comments
 (0)