Skip to content

Commit

Permalink
keep the @_ handling on one line
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 11, 2017
1 parent 6196804 commit e1446f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

7.26 2017-02-10
7.26 2017-02-11

7.25 2017-02-09
- Fixed cleanup bugs in Mojo::IOLoop::Stream.
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -31,8 +31,7 @@ has transactor => sub { Mojo::UserAgent::Transactor->new };
# Common HTTP methods
for my $name (qw(DELETE GET HEAD OPTIONS PATCH POST PUT)) {
monkey_patch __PACKAGE__, lc $name, sub {
my $self = shift;
my $cb = ref $_[-1] eq 'CODE' ? pop : undef;
my ($self, $cb) = (shift, ref $_[-1] eq 'CODE' ? pop : undef);
return $self->start($self->build_tx($name, @_), $cb);
};
}
Expand Down

0 comments on commit e1446f0

Please sign in to comment.