Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no need to return
  • Loading branch information
kraih committed Nov 27, 2014
1 parent 350478b commit 4f6dba0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -108,8 +108,8 @@ sub dispatch {

# Routes
$plugins->emit_hook(before_routes => $c);
return if $tx->res->code;
$c->render_not_found unless $self->routes->dispatch($c) || $tx->res->code;
$c->render_not_found
unless $tx->res->code || $self->routes->dispatch($c) || $tx->res->code;
}

sub handler {
Expand Down

0 comments on commit 4f6dba0

Please sign in to comment.