From ecd937337de61f2123a3272e5eb6e25b96e38bbd Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 21 Nov 2025 19:16:46 +0100 Subject: Save levels of indentation --- FICS/settings.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'FICS') diff --git a/FICS/settings.cpp b/FICS/settings.cpp index 388a3cc..20c1dc2 100644 --- a/FICS/settings.cpp +++ b/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; -- cgit v1.2.3