mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
Clean up Perl code according to perlcritic
Fix all perlcritic warnings of severity level 5, except in src/backend/utils/Gen_dummy_probes.pl, which is automatically generated. Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
@@ -6,11 +6,11 @@ use strict;
|
||||
|
||||
my $yesno = $ARGV[0];
|
||||
|
||||
open PACK, $ARGV[1] or die;
|
||||
open my $pack, '<', $ARGV[1] or die;
|
||||
|
||||
my %feature_packages;
|
||||
|
||||
while (<PACK>)
|
||||
while (<$pack>)
|
||||
{
|
||||
chomp;
|
||||
my ($fid, $pname) = split /\t/;
|
||||
@@ -24,13 +24,13 @@ while (<PACK>)
|
||||
}
|
||||
}
|
||||
|
||||
close PACK;
|
||||
close $pack;
|
||||
|
||||
open FEAT, $ARGV[2] or die;
|
||||
open my $feat, '<', $ARGV[2] or die;
|
||||
|
||||
print "<tbody>\n";
|
||||
|
||||
while (<FEAT>)
|
||||
while (<$feat>)
|
||||
{
|
||||
chomp;
|
||||
my ($feature_id, $feature_name, $subfeature_id,
|
||||
@@ -69,4 +69,4 @@ while (<FEAT>)
|
||||
|
||||
print "</tbody>\n";
|
||||
|
||||
close FEAT;
|
||||
close $feat;
|
||||
|
Reference in New Issue
Block a user