unstow_node / unstow_existing_node: rename foldable return value

$parent is a bit vague so rename to $parent_in_pkg.
This commit is contained in:
Adam Spiers 2024-04-01 22:29:03 +01:00
parent b3ed86d616
commit bae7890aa5

View file

@ -800,8 +800,8 @@ sub unstow_node {
$self->unstow_contents($package, $target_subpath, $pkg_path_from_cwd); $self->unstow_contents($package, $target_subpath, $pkg_path_from_cwd);
# This action may have made the parent directory foldable # This action may have made the parent directory foldable
if (my $parent = $self->foldable($target_subpath)) { if (my $parent_in_pkg = $self->foldable($target_subpath)) {
$self->fold_tree($target_subpath, $parent); $self->fold_tree($target_subpath, $parent_in_pkg);
} }
} }
elsif (-e $target_subpath) { elsif (-e $target_subpath) {
@ -909,8 +909,8 @@ sub unstow_existing_node {
$self->unstow_contents($package, $target_subpath, $source); $self->unstow_contents($package, $target_subpath, $source);
# This action may have made the parent directory foldable # This action may have made the parent directory foldable
if (my $parent = $self->foldable($target_subpath)) { if (my $parent_in_pkg = $self->foldable($target_subpath)) {
$self->fold_tree($target_subpath, $parent); $self->fold_tree($target_subpath, $parent_in_pkg);
} }
} }
else { else {