Remove r11058 - the commit message is lies, it does not fix the TODO test
Tomas Doran [Wed, 19 Aug 2009 19:10:06 +0000 (19:10 +0000)]
lib/Catalyst/DispatchType/Chained.pm

index 8446173..9df62c8 100644 (file)
@@ -237,8 +237,7 @@ sub recurse_match {
                 }
 
                 # Default args is blank, not 0, since Args()
-                my $args_attr = $action->attributes->{Args}->[0];
-                $args_attr = '' unless defined $args_attr;
+                my $args_attr = $action->attributes->{Args}->[0] || '';
 
                 #    No best action currently
                 # OR This one matches with fewer parts left than the current best action,