From: John Napiorkowski Date: Wed, 25 Mar 2015 14:56:15 +0000 (-0500) Subject: reformat a bit X-Git-Tag: 5.90085~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=219b4f88f35201393e0e84ec478f9aee542339b9 reformat a bit --- diff --git a/lib/Catalyst/DispatchType/Chained.pm b/lib/Catalyst/DispatchType/Chained.pm index e29e5b5..310b772 100644 --- a/lib/Catalyst/DispatchType/Chained.pm +++ b/lib/Catalyst/DispatchType/Chained.pm @@ -286,9 +286,15 @@ sub recurse_match { # The current best action might also be Args(0), # but we couldn't chose between then anyway so we'll take the last seen - if (!$best_action || + if ( + !$best_action || @parts < @{$best_action->{parts}} || - (!@parts && defined($args_attr) && $args_attr eq "0")){ + ( + !@parts && + defined($args_attr) && + $args_attr eq "0" + ) + ){ $best_action = { actions => [ $action ], captures=> [],