Skip to content

Commit b018411

Browse files
committed
simplify stuff to Constant
1 parent a35b535 commit b018411

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/simplify.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ SymbolicUtils.symtype(x::Expression) = Number
3535

3636
# SymbolicUtils -> ModelingToolkit
3737

38-
function simplify(expr::Expression)
39-
SymbolicUtils.simplify(expr) |> to_mtk
40-
end
38+
simplify(expr::Expression) = SymbolicUtils.simplify(expr) |> to_mtk
39+
simplify(expr) = expr |> to_mtk
4140

4241
@deprecate simplify_constants(ex) simplify(ex)
4342

0 commit comments

Comments
 (0)