no functional change. only return from one place for clarity
This commit is contained in:
parent
da0e67a891
commit
e8ca1e59a6
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ sub nearest_point_index {
|
|||
if (!defined $distance || $d < $distance) {
|
||||
$nearest_point_index = $i;
|
||||
$distance = $d;
|
||||
return $i if $distance < epsilon;
|
||||
last if $distance < epsilon;
|
||||
}
|
||||
}
|
||||
return $nearest_point_index;
|
||||
|
|
Loading…
Reference in a new issue