Skip to content

Commit

Permalink
Chose between '($app) = @_' and '$app = shift'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Manfredi committed Apr 6, 2021
1 parent 53c1470 commit 2058775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions t/mojo/daemon.t
Expand Up @@ -112,8 +112,8 @@ my $ua = Mojo::UserAgent->new(ioloop => Mojo::IOLoop->singleton);
my $whatever = 'Failed!';
$app->hook(
before_app_start => sub {
my ($app) = shift;
my $ok = ref $app && $app->isa('Mojolicious');
my $app = shift;
my $ok = ref $app && $app->isa('Mojolicious');
$whatever = $ok ? 'Whatever!' : 'Wrong type';
}
);
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/prefork.t
Expand Up @@ -50,7 +50,7 @@ my $counter = Mojolicious->new;
my ($counter_events, $counter_spawned, $counter_server);
$counter->hook(
before_app_start => sub {
my ($app) = shift;
my ($app) = @_;
$counter_events = {};
$counter_spawned = {};
$counter_server = {};
Expand Down

0 comments on commit 2058775

Please sign in to comment.