lib/veritas/optimizer/function/connective/conjunction.rb in veritas-optimizer-0.0.5 vs lib/veritas/optimizer/function/connective/conjunction.rb in veritas-optimizer-0.0.6
- old
+ new
@@ -70,11 +70,10 @@
#
# @return [Exclusion]
#
# @api private
def optimize
- left = self.left
- Veritas::Function::Predicate::Exclusion.new(left.left, merged_right_enumerables).optimize
+ left.left.exclude(merged_right_enumerables).optimize
end
end # class OptimizableToExclusion
# Optimize when the operands are a contradiction