]> Kevux Git Server - fll/commitdiff
Update: Remove extra error print in fss_embedded_list_read.
authorKevin Day <thekevinday@gmail.com>
Thu, 7 Apr 2022 01:23:57 +0000 (20:23 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 7 Apr 2022 01:23:57 +0000 (20:23 -0500)
level_3/fss_embedded_list_read/c/private-read.c

index a039bec8961c97ab91ab4a5aab57a5f7246eb0c5..b800b897c91575a1f1807742bb8f484b54a19464 100644 (file)
@@ -254,11 +254,7 @@ extern "C" {
 
       status = fll_fss_embedded_list_read(data->buffer, state, &input, &data->nest, objects_delimits, contents_delimits, comments);
 
-      if (F_status_is_error(status)) {
-        // @todo detect and replace fll_error_file_type_file_e with fll_error_file_type_pipe_e as appropriate.
-        fll_error_file_print(data->main->error, F_status_set_fine(status), "fll_fss_embedded_list_read", F_true, filename, f_file_operation_process_s, fll_error_file_type_file_e);
-      }
-      else if (status == F_data_not_stop || status == F_data_not_eos) {
+      if (F_status_is_error_not(status) && (status == F_data_not_stop || status == F_data_not_eos)) {
         macro_f_fss_nest_t_delete_simple(data->nest);
         f_string_dynamic_resize(0, &data->buffer);