Silence perl critic
Commit 27bdec06841 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.
This commit is contained in:
parent
27bdec0684
commit
5eabd91a83
@ -619,7 +619,7 @@ sub branch
|
||||
sub make_ranges
|
||||
{
|
||||
my ($nums, $limit) = @_;
|
||||
my ($prev, $start, $curr, $total, @sorted, @range);
|
||||
my ($prev, $start, $total, @sorted, @range);
|
||||
|
||||
@sorted = sort { $a <=> $b } @$nums;
|
||||
|
||||
@ -635,7 +635,7 @@ sub make_ranges
|
||||
# append final 'undef' to signal final iteration
|
||||
push @sorted, undef;
|
||||
|
||||
foreach $curr (@sorted)
|
||||
foreach my $curr (@sorted)
|
||||
{
|
||||
# if last iteration always append the range
|
||||
if (!defined($curr) || ($curr - $prev > $limit))
|
||||
|
Loading…
x
Reference in New Issue
Block a user