Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen committed Jan 18, 2025
1 parent 466de9f commit 13b6f50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libponyc/expr/match.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ bool expr_case(pass_opt_t* opt, ast_t* ast)
"guard must be a boolean expression");
}
}

return ok;
}

Expand Down
4 changes: 2 additions & 2 deletions src/libponyc/type/matchtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ static matchtype_t is_nominal_match_entity(ast_t* operand, ast_t* pattern,
// If the operand does provide the pattern, but the operand refcap can't
// match the pattern refcap, deny the match.
if(!is_cap_sub_cap(ast_id(o_cap), ast_id(o_eph),
ast_id(p_cap), ast_id(p_eph)))
ast_id(p_cap), ast_id(p_eph)))
{
if(errorf != NULL)
{
Expand All @@ -596,7 +596,7 @@ static matchtype_t is_nominal_match_entity(ast_t* operand, ast_t* pattern,
ast_error_frame(errorf, o_cap,
"this would be possible if the subcap were more ephemeral. "
"Perhaps you meant to consume this variable");
}
}

return MATCHTYPE_DENY_CAP;
}
Expand Down

0 comments on commit 13b6f50

Please sign in to comment.