From df187d692c334fc16653f145f8bb0e6ba0ea268c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Aug 2021 20:00:38 +0200 Subject: incdec: Remove pointless `$point_position` assignment Here, we really just want to exit the loop. There's no reason to change `$point_position`. --- incdec.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'incdec.pm') diff --git a/incdec.pm b/incdec.pm index 9772cb8..a400f7f 100644 --- a/incdec.pm +++ b/incdec.pm @@ -18,8 +18,6 @@ sub incdec { while ($point_position < length($line_part)) { $line_part =~ /(\d+)/; if ($-[0] <= $point_position && $point_position < $+[0]) { - $point_position = $-[0]; - last; } -- cgit v1.2.3