Skip to content

Commit 0c014b4

Browse files
committed
Make boolean and exit quickly if possible.
1 parent 348e56e commit 0c014b4

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)