]> git.proxmox.com Git - pve-manager.git/commitdiff
aplinfo: remove leftover cruft
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 23 Aug 2016 14:27:19 +0000 (16:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 24 Aug 2016 07:57:18 +0000 (09:57 +0200)
this was probably missed in a previous refactoring, the
filehandle is only opened and closed here and read_aplinfo()
already opens and closes the file itself.

PVE/APLInfo.pm

index 56c65597b159730aecabd50fe18f9e9856930d03..6105f44756b567d94098b6a295e17e795ad084f5 100644 (file)
@@ -180,10 +180,7 @@ sub download_aplinfo {
 
        # test syntax
        eval { 
-           my $fh = IO::File->new("<$tmp") ||
-               die "unable to open file '$tmp' - $!\n";
            read_aplinfo($tmp, {}, $aplurl, 1);
-           close($fh);
        };
        die "update failed: $@" if $@;