mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Silence perl critic
Commit 27bdec0684
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:
@ -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))
|
||||
|
Reference in New Issue
Block a user