[pve-devel] [PATCH RFC manager 3/8] aplinfo: remove leftover cruft

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Aug 23 16:27:19 CEST 2016


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 | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/PVE/APLInfo.pm b/PVE/APLInfo.pm
index d51df14..ca5d610 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 $@;
 
-- 
2.1.4





More information about the pve-devel mailing list