Skip to content

Commit

Permalink
Remove some useless code
Browse files Browse the repository at this point in the history
After an error, which causes a jump, nothing will be executed.

Signed-off-by: Gavin D. Howard <[email protected]>
  • Loading branch information
gavinhoward committed Aug 22, 2024
1 parent 6440fa2 commit 13d1b4b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/bc_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2054,8 +2054,6 @@ bc_parse_expr_err(BcParse* p, uint8_t flags, BcParseNext next)
if (BC_ERR(array_last && t != BC_LEX_RPAREN))
{
bc_parse_err(p, BC_ERR_PARSE_EXPR);

array_last = false;
}

switch (t)
Expand Down Expand Up @@ -2239,8 +2237,6 @@ bc_parse_expr_err(BcParse* p, uint8_t flags, BcParseNext next)
if (BC_ERR(array_last))
{
bc_parse_err(p, BC_ERR_PARSE_EXPR);

array_last = false;
}

nparens -= 1;
Expand Down

0 comments on commit 13d1b4b

Please sign in to comment.