Skip to content

Commit 9eb7e8c

Browse files
committed
Run formatter
1 parent 17311e7 commit 9eb7e8c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/systems/model_parsing.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ end
3737

3838
flatten_equations(eqs::Vector{Equation}, eq::Equation) = vcat(eqs, [eq])
3939
flatten_equations(eq::Vector{Equation}, eqs::Vector{Equation}) = vcat(eq, eqs)
40-
flatten_equations(eqs::Vector{Union{Equation, Vector{Equation}}}) = foldl(flatten_equations, eqs; init=Equation[])
40+
function flatten_equations(eqs::Vector{Union{Equation, Vector{Equation}}})
41+
foldl(flatten_equations, eqs; init = Equation[])
42+
end
4143

4244
function _model_macro(mod, name, expr, isconnector)
4345
exprs = Expr(:block)

test/complex.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using Test
99
z(t)::Complex
1010
end
1111
@equations begin
12-
z ~ x + im*y
12+
z ~ x + im * y
1313
end
1414
end
1515
@named mixed = ComplexModel()

0 commit comments

Comments
 (0)