Skip to content

Commit

Permalink
Expand result errors (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
afsalthaj authored Oct 8, 2024
1 parent 1b0902a commit 648cfce
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 79 deletions.
2 changes: 1 addition & 1 deletion golem-rib/src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl Expr {
}

pub fn or(left: Expr, right: Expr) -> Self {
Expr::Or(Box::new(left), Box::new(right), InferredType::Bool).unwrap()
Expr::Or(Box::new(left), Box::new(right), InferredType::Bool)
}

pub fn pattern_match(expr: Expr, match_arms: Vec<MatchArm>) -> Self {
Expand Down
Loading

0 comments on commit 648cfce

Please sign in to comment.