Skip to content

Commit

Permalink
Define an empty expression for and
Browse files Browse the repository at this point in the history
  • Loading branch information
YehorBoiar committed Oct 17, 2024
1 parent 74e857f commit 4d77c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/conjure_core/src/rules/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ fn remove_empty_expression(expr: &Expr, _: &Model) -> ApplicationResult {

let new_expr = match expr {
Or(_, _) => Constant(Metadata::new(), Const::Bool(false)),
And(_, _) => Constant(Metadata::new(), Const::Bool(true)),
_ => Nothing,
};

Expand Down

0 comments on commit 4d77c6f

Please sign in to comment.