Skip to content

Commit 5eabd91

Browse files
committed
Silence perl critic
Commit 27bdec0 uses a loop variable that is not strictly local to the loop. Perlcritic disapproves, and there's really no reason as the variable is not used outside the loop. Per buildfarm animals koel and crake.
1 parent 27bdec0 commit 5eabd91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/unicode/generate-unicode_case_table.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ sub branch
619619
sub make_ranges
620620
{
621621
my ($nums, $limit) = @_;
622-
my ($prev, $start, $curr, $total, @sorted, @range);
622+
my ($prev, $start, $total, @sorted, @range);
623623

624624
@sorted = sort { $a <=> $b } @$nums;
625625

@@ -635,7 +635,7 @@ sub make_ranges
635635
# append final 'undef' to signal final iteration
636636
push @sorted, undef;
637637

638-
foreach $curr (@sorted)
638+
foreach my $curr (@sorted)
639639
{
640640
# if last iteration always append the range
641641
if (!defined($curr) || ($curr - $prev > $limit))

0 commit comments

Comments
 (0)