no functional change. only return from one place for clarity

This commit is contained in:
Jesse Vincent 2013-04-07 19:44:32 -04:00
parent da0e67a891
commit e8ca1e59a6

View file

@ -252,7 +252,7 @@ sub nearest_point_index {
if (!defined $distance || $d < $distance) { if (!defined $distance || $d < $distance) {
$nearest_point_index = $i; $nearest_point_index = $i;
$distance = $d; $distance = $d;
return $i if $distance < epsilon; last if $distance < epsilon;
} }
} }
return $nearest_point_index; return $nearest_point_index;