Minor code optimization.

This commit is contained in:
Jürg Lehni 2016-07-27 22:58:57 +02:00
parent 17cca2984b
commit f4f4b3472f

View file

@ -694,11 +694,11 @@ PathItem.inject(new function() {
// to which we may switch might be, so check that.
|| nextInter && isValid(nextInter._segment)))
))
return inter;
break;
// If it's no match, continue with the next linked intersection.
inter = inter._next;
}
return start;
return inter || start;
}
// Sort segments to give non-ambiguous segments the preference as