From a0378de6e570497ff9b6c4cf28536bfe2485dff8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 9 Jul 2023 21:52:48 +0000 Subject: [PATCH] style: pre-commit.ci fixes --- include/CLI/impl/App_inl.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/CLI/impl/App_inl.hpp b/include/CLI/impl/App_inl.hpp index 18dd623f0..5e703eddf 100644 --- a/include/CLI/impl/App_inl.hpp +++ b/include/CLI/impl/App_inl.hpp @@ -1431,15 +1431,15 @@ CLI11_INLINE bool App::_parse_single_config(const ConfigItem &item, std::size_t auto res = config_formatter_->to_flag(item); bool converted{false}; if(op->get_disable_flag_override()) { - auto val = detail::to_flag_value(res); - if(val == 1) { - res = op->get_flag_value(item.name, "{}"); - converted = true; - } + auto val = detail::to_flag_value(res); + if(val == 1) { + res = op->get_flag_value(item.name, "{}"); + converted = true; + } } if(!converted) { - errno=0; + errno = 0; res = op->get_flag_value(item.name, res); }