Avoids potential future mistake with passing in an explicit 0.
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
$volhash->{$volid}->{is_attached} //= 0;
$volhash->{$volid}->{is_attached} = 1
- if !$volhash->{$volid}->{is_unused} && !defined($snapname) && !defined($pending);
+ if !$volhash->{$volid}->{is_unused} && !defined($snapname) && !$pending;
$volhash->{$volid}->{referenced_in_snapshot}->{$snapname} = 1
if defined($snapname);
- $volhash->{$volid}->{referenced_in_pending} = 1 if defined($pending);
+ $volhash->{$volid}->{referenced_in_pending} = 1 if $pending;
my $size = $drive->{size};
$volhash->{$volid}->{size} //= $size if $size;