]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
perlcritic: avoid conditional variable declaration
[pve-storage.git] / PVE / Storage.pm
index bd6e15e9f1f9f05dec9a6cbcd88391705ff08212..13fea736be9d93c671e97eddaabc2c3e4a0d04ce 100755 (executable)
@@ -1411,7 +1411,8 @@ sub decompressor_info {
     die "ERROR: archive format not defined\n"
        if !defined($decompressor->{$format});
 
-    my $decomp = $decompressor->{$format}->{$comp} if $comp;
+    my $decomp;
+    $decomp = $decompressor->{$format}->{$comp} if $comp;
 
     my $info = {
        format => $format,