Skip to content

Commit

Permalink
the invocant is not actually used
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 24, 2015
1 parent d3cbf13 commit 2ff8f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -23,7 +23,7 @@ sub continue {
my $match = $c->match;
my $stack = $match->stack;
my $current = $match->current;
return $self->_render($c) unless my $field = $stack->[$current];
return _render($c) unless my $field = $stack->[$current];

# Merge captures into stash
my $stash = $c->stash;
Expand Down Expand Up @@ -193,7 +193,7 @@ sub _load {
}

sub _render {
my ($self, $c) = @_;
my $c = shift;
my $stash = $c->stash;
return if $stash->{'mojo.rendered'};
$c->render_maybe or $stash->{'mojo.routed'} or $c->helpers->reply->not_found;
Expand Down

0 comments on commit 2ff8f16

Please sign in to comment.