commit ecd937337de61f2123a3272e5eb6e25b96e38bbd from: Markus Uhlin date: Fri Nov 21 18:16:46 2025 UTC Save levels of indentation commit - 6d526bff1ad6087da6ff08a746aaa6cb55ce3545 commit + ecd937337de61f2123a3272e5eb6e25b96e38bbd blob - 388a3cc4b97d10f3af9a15935af0c62b9a579448 blob + 20c1dc2252ebcf0d5e0216e6e5ec26153c8bf873 --- FICS/settings.cpp +++ FICS/settings.cpp @@ -133,12 +133,10 @@ install_setting(const char *name, const char *value) return EINVAL; for (auto it = settings.begin(); it != settings.end(); ++it) { if (strings_match((*it).name.c_str(), name)) { - if (!is_setting_ok(value, (*it).type)) { + if (!is_setting_ok(value, (*it).type)) return EINVAL; - } else { - (*it).value.assign(value); - return 0; - } + (*it).value.assign(value); + return 0; } } return ENOENT;