From ead9a0b2a62dbea1d8d77a9969e9c03bc476cf55 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 20 Jan 2023 22:14:21 -0600 Subject: [PATCH] Cleanup: Simplify logic at wrap up in f_console_parameter_process(). --- level_0/f_console/c/console.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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); -- 1.8.3.1