[carton] 286/472: $self->dir is already Path object

Lucas Kanashiro kanashiro-guest at moszumanska.debian.org
Fri Jul 24 00:38:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

kanashiro-guest pushed a commit to branch master
in repository carton.

commit 3e70edc3deeac395a9dba5117f38d7ccb4b73729
Author: Tatsuhiko Miyagawa <miyagawa at bulknews.net>
Date:   Wed Jun 5 15:27:26 2013 +0900

    $self->dir is already Path object
---
 xt/CLI.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xt/CLI.pm b/xt/CLI.pm
index 110e847..82baf95 100644
--- a/xt/CLI.pm
+++ b/xt/CLI.pm
@@ -40,7 +40,7 @@ sub run {
 
 sub clean_local {
     my $self = shift;
-    Path::Tiny->new("$self->{dir}/local")->remove_tree({ safe => 0 });
+    $self->dir->child("local")->remove_tree({ safe => 0 });
 }
 
 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/carton.git



More information about the Pkg-perl-cvs-commits mailing list