From b4fc8cc255186b925042c927b79a6402f029c989 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 4 Sep 2024 21:43:03 -0500 Subject: [PATCH] Cleanup: Fix dead code. The graph condition is always `0x1` when entering the block but inside it checks for `0x2`. Update the function to accept either `0x1` or `0x2`. --- level_1/fl_fss/c/fss/embedded_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_1/fl_fss/c/fss/embedded_list.c b/level_1/fl_fss/c/fss/embedded_list.c index bcf90d0..48c7293 100644 --- a/level_1/fl_fss/c/fss/embedded_list.c +++ b/level_1/fl_fss/c/fss/embedded_list.c @@ -593,7 +593,7 @@ extern "C" { } } } - else if (graph_first == 0x1 && buffer.string[range->start] == f_fss_comment_s.string[0]) { + else if (buffer.string[range->start] == f_fss_comment_s.string[0] && (graph_first == 0x1 || graph_first == 0x2)) { // The newline_last is initialized to the range->start, which may not actually be a new line. position = (buffer.string[newline_last] == f_string_eol_s.string[0]) ? newline_last + 1 : newline_last; -- 1.8.3.1