Skip to content

Commit

Permalink
silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
monken committed Feb 9, 2014
1 parent da1e61a commit 66e0710
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/MetaCPAN/Web/Controller/Author.pm
Expand Up @@ -43,16 +43,15 @@ sub index : Path : Args(1) {
releases => $releases,
faves => $faves,
show_author => 1,
took => $data->{took} + $faves_data->{took},
took => $data->{took} + $faves_data->{took} || 0,
total => $data->{hits}->{total},
template => 'author.html'
}
);

if ( $author->{country} ne '' ) {
$c->stash( author_country_name =>
Locale::Country::code2country( $author->{country} ) );
}
$c->stash( author_country_name =>
Locale::Country::code2country( $author->{country} ) )
if $author->{country};
}

__PACKAGE__->meta->make_immutable;
Expand Down

0 comments on commit 66e0710

Please sign in to comment.