Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 29, 2013
1 parent d77d85b commit 5743a7f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -43,11 +43,7 @@ sub continue {
else { $continue = $self->_controller($c, $field, $last) }
$match->current($current);

# Break the chain
return undef if !$last && !$continue;

# Continue
return $self->continue($c);
return $last || $continue ? $self->continue($c) : undef;
}

sub dispatch {
Expand Down

0 comments on commit 5743a7f

Please sign in to comment.