From: Fabian Grünbichler Date: Tue, 23 Aug 2016 14:27:19 +0000 (+0200) Subject: aplinfo: remove leftover cruft X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=36b9245739ec067076e93ba8ba3146d09fb6cf23;p=pve-manager.git aplinfo: remove leftover cruft 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. --- diff --git a/PVE/APLInfo.pm b/PVE/APLInfo.pm index 56c65597..6105f447 100644 --- a/PVE/APLInfo.pm +++ b/PVE/APLInfo.pm @@ -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 $@;