diff --git a/src/libponyc/expr/match.c b/src/libponyc/expr/match.c index c2b5b1078c..3dcb12f985 100644 --- a/src/libponyc/expr/match.c +++ b/src/libponyc/expr/match.c @@ -581,7 +581,6 @@ bool expr_case(pass_opt_t* opt, ast_t* ast) "guard must be a boolean expression"); } } - return ok; } diff --git a/src/libponyc/type/matchtype.c b/src/libponyc/type/matchtype.c index 4f7829fdf3..b44094b1b4 100644 --- a/src/libponyc/type/matchtype.c +++ b/src/libponyc/type/matchtype.c @@ -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) { @@ -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; }