Skip to content

Commit cd1d858

Browse files
use simplified_expr for conversion
1 parent 3bf6b6c commit cd1d858

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/operations.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,5 @@ Base.convert(::Type{Operation}, x::Expression) = Operation(identity, Expression[
6565
Operation(x) = convert(Operation, x)
6666

6767
#convert to Expr
68-
Base.Expr(op::Operation) =
69-
op.op isa Variable ? op.op.name : Expr(:call, Symbol(op.op), Expr.(op.args)...)
68+
Base.Expr(op::Operation) = simplified_expr(op)
7069
Base.convert(::Type{Expr},x::Operation) = Expr(x)

0 commit comments

Comments
 (0)