]> git.proxmox.com Git - pve-storage.git/commitdiff
folowup: fix whitespace errors and s/and/&&/ for consistency
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Nov 2018 14:27:06 +0000 (15:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Nov 2018 14:27:08 +0000 (15:27 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Disks/ZFS.pm

index 3edee944d3894d77a62c02805261a6932a8fe5cb..551f21a3e3a9ebaeb497ac5a8ee2bac3bb64ce65 100644 (file)
@@ -245,12 +245,12 @@ __PACKAGE__->register_method ({
                        msg => $msg,
                        lvl => $lvl,
                    };
-                   
+
                    $vdev->{state} = $state if defined($state);
                    $vdev->{read} = $read + 0 if defined($read);
                    $vdev->{write} = $write + 0 if defined($write);
                    $vdev->{cksum} = $cksum + 0 if defined($cksum);
-                   
+
                    my $cur = pop @$stack;
 
                    if ($lvl > $curlvl) {
@@ -259,12 +259,12 @@ __PACKAGE__->register_method ({
                        $cur = pop @$stack;
                        push @{$cur->{children}}, $vdev;
                    } else {
-                       while ($lvl <= $cur->{lvl} and $cur->{lvl} != 0) {
+                       while ($lvl <= $cur->{lvl} && $cur->{lvl} != 0) {
                            $cur = pop @$stack;
                        }
                        push @{$cur->{children}}, $vdev;
                    }
-                   
+
                    push @$stack, $cur;
                    push @$stack, $vdev;
                    $curlvl = $lvl;