undo previous change
Sebastian Riedel [Mon, 28 Mar 2005 20:17:19 +0000 (20:17 +0000)]
lib/Catalyst/Engine.pm

index b477b4c..ec4842b 100644 (file)
@@ -314,10 +314,7 @@ sub get_action {
             my $child = $visitor->getResult;
             my $uid   = $child->getUID if $child;
             my $match = $c->actions->{private}->{$uid}->{$action} if $uid;
-            if ($match) {
-                $action eq 'end' ? unshift @results, [$match] : push @results,
-                  [$match];
-            }
+            push @results, [$match] if $match;
             $parent = $child if $child;
         }
         return \@results;