Skip to content

Commit

Permalink
Squash an uninitialized value warning on a GET that will return 301.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 13, 2017
1 parent 9404533 commit d876070
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MetaCPAN/Web/Model/API/Contributors.pm
Expand Up @@ -27,6 +27,9 @@ sub get {
my ( $self, $author, $release ) = @_;
my $cv = $self->cv;

# If there's no release, we'll just redirect
$release //= {};

$self->request( '/release/contributors/' . $author . '/' . $release, )
->cb(
sub {
Expand Down

0 comments on commit d876070

Please sign in to comment.