Skip to content

Commit cacc04a

Browse files
pre-commit-ci[bot]henryiii
authored andcommitted
style: pre-commit.ci fixes
1 parent b429175 commit cacc04a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/CLI/impl/App_inl.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,13 @@ CLI11_NODISCARD CLI11_INLINE CLI::App_p App::get_subcommand_ptr(int index) const
434434
}
435435

436436
CLI11_NODISCARD CLI11_INLINE CLI::App *App::get_option_group(std::string group_name) const {
437-
for(const App_p &app : subcommands_) {
438-
if(app->name_.empty() && app->group_ == group_name) {
439-
return app.get();
437+
for(const App_p &app : subcommands_) {
438+
if(app->name_.empty() && app->group_ == group_name) {
439+
return app.get();
440+
}
440441
}
442+
throw OptionNotFound(group_name);
441443
}
442-
throw OptionNotFound(group_name);
443-
}
444444

445445
CLI11_NODISCARD CLI11_INLINE std::size_t App::count_all() const {
446446
std::size_t cnt{0};

0 commit comments

Comments
 (0)