Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
captures are already localized, so remove dead code (closes #1203)
  • Loading branch information
kraih committed Mar 18, 2018
1 parent 41f44b7 commit ad14e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Routes/Match.pm
Expand Up @@ -84,10 +84,10 @@ sub _match {
}
# Match children
my @snapshot = $r->parent ? ([@{$self->stack}], $captures) : ([], {});
my $snapshot = $r->parent ? [@{$self->stack}] : [];
for my $child (@{$r->children}) {
return 1 if $self->_match($child, $c, $options);
$self->stack([@{$snapshot[0]}])->{captures} = $snapshot[1];
$self->stack([@$snapshot]);
}
}
Expand Down

0 comments on commit ad14e43

Please sign in to comment.