Skip to content

Commit

Permalink
do not warn about 'uninitialized value' on non-symlink platforms
Browse files Browse the repository at this point in the history
'dzil test' warns on some platforms about 'uninitialized value latest'. (see https://github.com/PerlServices/OPM-Maker-Command-depcheck/actions/runs/5146304937/jobs/9265154121#step:7:39)
  • Loading branch information
reneeb authored and rjbs committed Nov 21, 2023
1 parent a8f9f8c commit 9026646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dist/Zilla/Dist/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ sub test {

$self->log("all's well; removing $target");
$target->remove_tree({ safe => 0 });
$latest->remove_tree({ safe => 0 }) if -d $latest; # error cannot unlink, is a directory
$latest->remove_tree({ safe => 0 }) if $latest && -d $latest; # error cannot unlink, is a directory
$latest->remove if $latest;
}

Expand Down

0 comments on commit 9026646

Please sign in to comment.