]> git.proxmox.com Git - pve-storage.git/commitdiff
cleanuo: no need to negate we have not-equal
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Nov 2019 11:28:49 +0000 (12:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Nov 2019 11:43:55 +0000 (12:43 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/Plugin.pm

index 189356ac54916090a5ef8d2434addec2423fcb0f..a573959bd7ecf0d2707f704427eb5e681f4a41b5 100644 (file)
@@ -968,10 +968,7 @@ sub list_volumes {
                } else {
                    $item->{content} = 'images';
                }
-               if (!($type eq $item->{content})) {
-                   next;
-               }
-
+               next if $type ne $item->{content};
            } else {
                $item->{content} = $type;
            }