Skip to content

Commit b2cbeb5

Browse files
committed
remove incorrect check
1 parent 9353d6b commit b2cbeb5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,7 @@ function expand_connections(sys::AbstractSystem; debug=false, tol=1e-10)
197197
end
198198

199199
# if there are no connections, we are done
200-
if isempty(cts)
201-
isempty(instream_eqs) || error("Illegal instream function in $(nameof(sys))")
202-
return sys
203-
end
200+
isempty(cts) && return sys
204201

205202
sys2idx = Dict{Symbol,Int}() # system (name) to n-th connect statement
206203
narg_connects = Connection[]

0 commit comments

Comments
 (0)