From: Christian Hansen Date: Thu, 26 May 2005 04:19:59 +0000 (+0000) Subject: use || 0 instead X-Git-Tag: 5.7099_04~1361 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=3ceed047612a749fd0e36c798dcc7a3086f81f4b use || 0 instead --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index a42eab9..16136fc 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -166,7 +166,7 @@ sub execute { push @{ $c->{stats} }, [ $action, sprintf( '%fs', $elapsed ) ]; $c->state(@state); } - else { $c->state( &$code( $class, $c, @{ $c->req->args } ) ? 1 : 0 ) } + else { $c->state( &$code( $class, $c, @{ $c->req->args } ) || 0 ) } }; if ( my $error = $@ ) {