From 4e5adf085cd7412ecee82545c55505679dbdcd2d Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Fri, 7 Aug 2015 21:21:56 -0400 Subject: [PATCH] fix two conditions * one is now always true because it is an object * the other was checking the definedness of lhs instead of rhs --- lib/Dist/Zilla/Tester.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Dist/Zilla/Tester.pm b/lib/Dist/Zilla/Tester.pm index 982aa23c3..edff8d01c 100644 --- a/lib/Dist/Zilla/Tester.pm +++ b/lib/Dist/Zilla/Tester.pm @@ -162,7 +162,7 @@ sub minter { 'Dist::Zilla::Tester::_Minter' } local $ENV{DZIL_GLOBAL_CONFIG_ROOT}; $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root} - if defined $ENV{DZIL_GLOBAL_CONFIG_ROOT}; + if defined $tester_arg->{global_config_root}; my $zilla = $self->$orig($arg); @@ -276,9 +276,7 @@ sub minter { 'Dist::Zilla::Tester::_Minter' } my $global_config_root = Path::Class::dir($tester_arg->{global_config_root})->absolute; - local $ENV{DZIL_GLOBAL_CONFIG_ROOT}; - $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $tester_arg->{global_config_root} - if defined $ENV{DZIL_GLOBAL_CONFIG_ROOT}; + local $ENV{DZIL_GLOBAL_CONFIG_ROOT} = $global_config_root; my $global_stashes = $self->_setup_global_config( $global_config_root,