From bae7890aa54581369f311dc93e5e8c88c5efe175 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 1 Apr 2024 22:29:03 +0100 Subject: [PATCH] unstow_node / unstow_existing_node: rename foldable return value $parent is a bit vague so rename to $parent_in_pkg. --- lib/Stow.pm.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Stow.pm.in b/lib/Stow.pm.in index d1fe69d..6689ce0 100755 --- a/lib/Stow.pm.in +++ b/lib/Stow.pm.in @@ -800,8 +800,8 @@ sub unstow_node { $self->unstow_contents($package, $target_subpath, $pkg_path_from_cwd); # This action may have made the parent directory foldable - if (my $parent = $self->foldable($target_subpath)) { - $self->fold_tree($target_subpath, $parent); + if (my $parent_in_pkg = $self->foldable($target_subpath)) { + $self->fold_tree($target_subpath, $parent_in_pkg); } } elsif (-e $target_subpath) { @@ -909,8 +909,8 @@ sub unstow_existing_node { $self->unstow_contents($package, $target_subpath, $source); # This action may have made the parent directory foldable - if (my $parent = $self->foldable($target_subpath)) { - $self->fold_tree($target_subpath, $parent); + if (my $parent_in_pkg = $self->foldable($target_subpath)) { + $self->fold_tree($target_subpath, $parent_in_pkg); } } else {