From: Kevin Day Date: Sat, 21 Jan 2023 04:14:21 +0000 (-0600) Subject: Cleanup: Simplify logic at wrap up in f_console_parameter_process(). X-Git-Tag: 0.6.4~91 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ead9a0b2a62dbea1d8d77a9969e9c03bc476cf55;p=fll Cleanup: Simplify logic at wrap up in f_console_parameter_process(). --- diff --git a/level_0/f_console/c/console.c b/level_0/f_console/c/console.c index 3545840..d29a508 100644 --- a/level_0/f_console/c/console.c +++ b/level_0/f_console/c/console.c @@ -399,17 +399,8 @@ extern "C" { parameters->arguments.array[parameters->arguments.used++].size = 0; } // for - if (F_status_is_error(status)) { - f_array_lengths_resize(0, &needs_value); - - return status; - } - - if (needs_value.used) { - status = F_complete_not; - } - else { - status = F_none; + if (F_status_is_error_not(status)) { + status = needs_value.used ? F_complete_not : F_none; } f_array_lengths_resize(0, &needs_value);