]> Kevux Git Server - fll/commitdiff
Bugfix: Remove extra (and invalid) processing of --select parameter.
authorKevin Day <kevin@kevux.org>
Tue, 30 May 2023 00:50:57 +0000 (19:50 -0500)
committerKevin Day <kevin@kevux.org>
Tue, 30 May 2023 00:50:57 +0000 (19:50 -0500)
This --select parameter is already processed and validated earlier in the settings load function.

level_3/fss_read/c/main/common.c

index 0194308e2357df3318eb8033367875d5f387171f..72b979f03a34f8943eb053d31fe447400613b7fd 100644 (file)
@@ -471,20 +471,6 @@ extern "C" {
     fss_read_setting_load_depth(arguments, main, parameters);
     if (F_status_is_error(main->setting.state.status)) return;
 
-    if (parameters->array[fss_read_parameter_select_e].result & f_console_result_found_e) {
-      main->setting.state.status = F_status_set_error(F_parameter);
-
-      if ((main->setting.flag & fss_read_main_flag_print_first_e) && main->program.message.verbosity > f_console_verbosity_error_e) {
-        fll_print_dynamic_raw(f_string_eol_s, main->program.message.to);
-      }
-
-      index = parameters->array[fss_read_parameter_select_e].values.array[i];
-
-      fll_program_print_error_parameter_integer_not_positive(&main->program.error, f_console_symbol_long_normal_s, fss_read_long_select_s, parameters->arguments.array[index]);
-
-      return;
-    }
-
     if (parameters->array[fss_read_parameter_trim_e].result & f_console_result_found_e) {
       main->setting.flag |= fss_read_main_flag_trim_e;
     }