Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix warnings for some author json files
  • Loading branch information
mickeyn committed Apr 25, 2016
1 parent e2f1703 commit 9643c87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/MetaCPAN/Script/Author.pm
Expand Up @@ -10,7 +10,7 @@ use DateTime::Format::ISO8601 ();
use Email::Valid ();
use Encode ();
use File::stat ();
use Cpanel::JSON::XS ();
use Cpanel::JSON::XS qw( decode_json );
use Log::Contextual qw( :log );
use MetaCPAN::Document::Author;
use URI ();
Expand Down Expand Up @@ -115,8 +115,7 @@ sub author_config {

my $author;
eval {
$author
= Cpanel::JSON::XS->new->utf8->relaxed->decode( $file->slurp );
$author = decode_json( $file->slurp );
1;
} or do {
log_warn {"$file is broken: $@"};
Expand Down

0 comments on commit 9643c87

Please sign in to comment.