mirror of
https://git.proxmox.com/git/pve-firmware
synced 2025-04-28 16:44:43 +00:00
assemble: perlcritic: avoid unamed literal and two argument open
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bb4be6ebcf
commit
f75a8ffbf7
@ -304,8 +304,8 @@ my $fwdone = {};
|
||||
|
||||
my $error = 0;
|
||||
|
||||
open(TMP, $fwlist);
|
||||
while(defined(my $line = <TMP>)) {
|
||||
open(my $fd, '<', $fwlist);
|
||||
while(defined(my $line = <$fd>)) {
|
||||
chomp $line;
|
||||
my ($fw, $mod) = split(/\s+/, $line, 2);
|
||||
|
||||
@ -398,6 +398,6 @@ while(defined(my $line = <TMP>)) {
|
||||
$error++;
|
||||
next;
|
||||
}
|
||||
close(TMP);
|
||||
close($fd);
|
||||
|
||||
exit($error);
|
||||
|
Loading…
Reference in New Issue
Block a user