From e8ca1e59a6bd9df0407c151e24f5d3273625a958 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 7 Apr 2013 19:44:32 -0400 Subject: [PATCH] no functional change. only return from one place for clarity --- lib/Slic3r/Geometry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Geometry.pm b/lib/Slic3r/Geometry.pm index d21cff330..e1a591025 100644 --- a/lib/Slic3r/Geometry.pm +++ b/lib/Slic3r/Geometry.pm @@ -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;