From: André Walker Date: Mon, 15 Aug 2011 15:04:40 +0000 (-0300) Subject: NoSugarContainer doesn't need var X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=13398eb0280f87ac8d13dcbf703df78e4bc2d8c2 NoSugarContainer doesn't need var --- diff --git a/lib/Catalyst/IOC/Container.pm b/lib/Catalyst/IOC/Container.pm index 4370a9a..a2987ef 100644 --- a/lib/Catalyst/IOC/Container.pm +++ b/lib/Catalyst/IOC/Container.pm @@ -112,8 +112,9 @@ sub BUILD { { no strict 'refs'; my $class = ref $self; - warn("In build " . ${ $class . '::customise_container' }); - ${ $class . '::customise_container' }->($self); + warn("In build $class"); + ${ $class . '::customise_container' }->($self) + if ${ $class . '::customise_container' }; } }