Skip to content

Commit

Permalink
Merge branch 'master' into haarg/release-info-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Jul 19, 2017
2 parents 342faa8 + dc1f2f9 commit bf2234a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/MetaCPAN/Web/Model/API/Favorite.pm
Expand Up @@ -102,8 +102,7 @@ sub get_plusser_authors {
my ( $self, $users ) = @_;
return Future->done( [] ) unless $users and @{$users};

$self->request( '/author/by_user', undef, { user => $users } )
->transform(
$self->request( '/author/by_user', { user => $users } )->transform(
done => sub {
my $res = shift;
return [] unless $res->{authors};
Expand All @@ -116,7 +115,7 @@ sub get_plusser_authors {
@{ $res->{authors} }
];
}
);
);
}

__PACKAGE__->meta->make_immutable;
Expand Down

0 comments on commit bf2234a

Please sign in to comment.