Skip to content

Commit 180dde9

Browse files
authored
Merge pull request #1964 from evetion/fix/get_cset_sv
Reverse the order of the boolean check in the inner loop of `get_cset_sv`
2 parents 60bb8e2 + 0c014b4 commit 180dde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ function get_cset_sv(namespace, ex, csets)
513513
crep = first(c.set)
514514
current = namespace == crep.sys.namespace
515515
for (idx_in_set, v) in enumerate(c.set)
516-
if isequal(namespaced_var(v), full_name_sv) && (current || !v.isouter)
516+
if (current || !v.isouter) && isequal(namespaced_var(v), full_name_sv)
517517
return c.set, idx_in_set, v.v
518518
end
519519
end

0 commit comments

Comments
 (0)