Skip to content

Commit

Permalink
use $c consistently for helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 30, 2014
1 parent 7b52b98 commit cb14861
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -76,10 +76,10 @@ sub _current_route {
}

sub _delay {
my $self = shift;
my $tx = $self->render_later->tx;
my $c = shift;
my $tx = $c->render_later->tx;
my $delay = Mojo::IOLoop->delay(@_);
$delay->catch(sub { $self->render_exception(pop) and undef $tx })->wait;
$delay->catch(sub { $c->render_exception(pop) and undef $tx })->wait;
}

sub _inactivity_timeout {
Expand Down

0 comments on commit cb14861

Please sign in to comment.