From 22a31e100df7dcbf6c3db1048aaa1359b8a3fee0 Mon Sep 17 00:00:00 2001 From: Will Bryant Date: Tue, 15 Sep 2026 10:45:08 +1200 Subject: [PATCH] Remove redundant Expression wrapping around Product Because Product < Expression, Expression*factor was producing Expression([Expresssion]), which is unnecessary. --- lib/or_tools/expression.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/or_tools/expression.rb b/lib/or_tools/expression.rb index dffb5ee..fa7b287 100644 --- a/lib/or_tools/expression.rb +++ b/lib/or_tools/expression.rb @@ -15,7 +15,7 @@ def -@ end def *(other) - Expression.new([Product.new(self, Expression.to_expression(other))]) + Product.new(self, Expression.to_expression(other)) end def >(other)