]> Kevux Git Server - fll/commitdiff
Cleanup: Remove unnecessary error assignment.
authorKevin Day <thekevinday@gmail.com>
Wed, 30 Mar 2022 04:08:54 +0000 (23:08 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 30 Mar 2022 04:08:54 +0000 (23:08 -0500)
level_3/fss_payload_read/c/fss_payload_read.c
level_3/fss_payload_write/c/fss_payload_write.c
level_3/fss_status_code/c/fss_status_code.c
level_3/status_code/c/status_code.c

index 04ef63f0a4cee8059b160ceeb7e43c45de4e31eb..dc35be7d3a11bd31dd03724aca778f9f6051e0db 100644 (file)
@@ -167,7 +167,7 @@ extern "C" {
         fll_program_parameter_process_empty(&main->context, sets);
       }
 
-      if (F_status_is_error(status)) return F_status_set_error(status);
+      if (F_status_is_error(status)) return status;
     }
 
     // Identify priority of verbosity related parameters.
@@ -177,7 +177,6 @@ extern "C" {
       const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4);
 
       status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
-
       if (F_status_is_error(status)) return status;
 
       if (choice == fss_payload_read_parameter_verbosity_quiet_e) {
index 1854114e055951eb5658aa5cbcb1774a5d6a12d4..312e4ce89baf9d3ab7bead94d40c0d0fad668c78 100644 (file)
@@ -96,7 +96,7 @@ extern "C" {
         fll_program_parameter_process_empty(&main->context, sets);
       }
 
-      if (F_status_is_error(status)) return F_status_set_error(status);
+      if (F_status_is_error(status)) return status;
     }
 
     // Identify priority of verbosity related parameters.
@@ -106,7 +106,6 @@ extern "C" {
       const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4);
 
       status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
-
       if (F_status_is_error(status)) return status;
 
       if (choice == fss_payload_write_parameter_verbosity_quiet_e) {
index 3b92fab051edfe3f10073f6802b9cebf9d4b4f92..e5007aca8880dfd789c42359825606aeb795ebfe 100644 (file)
@@ -69,7 +69,7 @@ extern "C" {
         fll_program_parameter_process_empty(&main->context, sets);
       }
 
-      if (F_status_is_error(status)) return F_status_set_error(status);
+      if (F_status_is_error(status)) return status;
     }
 
     // Identify priority of verbosity related parameters.
@@ -79,7 +79,6 @@ extern "C" {
       const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4);
 
       status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
-
       if (F_status_is_error(status)) return status;
 
       if (choice == fss_status_code_parameter_verbosity_quiet_e) {
index 4648d953057a57c9802cd07539a849d82e90d817..1caf71df1d5fe985a69821aba0a8e1571f4a0190 100644 (file)
@@ -69,7 +69,7 @@ extern "C" {
         fll_program_parameter_process_empty(&main->context, sets);
       }
 
-      if (F_status_is_error(status)) return F_status_set_error(status);
+      if (F_status_is_error(status)) return status;
     }
 
     // Identify priority of verbosity related parameters.
@@ -79,7 +79,6 @@ extern "C" {
       const f_console_parameter_ids_t choices = macro_f_console_parameter_ids_t_initialize(ids, 4);
 
       status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
-
       if (F_status_is_error(status)) return status;
 
       if (choice == status_code_parameter_verbosity_quiet_e) {