From 36b9245739ec067076e93ba8ba3146d09fb6cf23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 23 Aug 2016 16:27:19 +0200 Subject: [PATCH] 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. --- PVE/APLInfo.pm | 3 --- 1 file changed, 3 deletions(-) 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 $@; -- 2.39.5