Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Apr 11, 2024
1 parent 19a4fcb commit d78c439
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,10 +1287,8 @@ impl Builder {
if let Ok(expr) = cfg_expr::Expression::parse(cfg) {
// We can't just do an eval and always return true, as that then would cause any
// not() expressions to evaluate to false
if expr.predicates().count() == 0 {
if !expr.eval(|_| true) {
return None;
}
if expr.predicates().count() == 0 && !expr.eval(|_| true) {
return None;
}
}
}
Expand Down

0 comments on commit d78c439

Please sign in to comment.