Permalink
Browse files

silence a warning

  • Loading branch information...
1 parent a30041b commit 51807255c18e884a52d193646be76228412b3259 @charsbar charsbar committed with Mar 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Module/CPANTS/Kwalitee/MetaYML.pm
@@ -126,7 +126,7 @@ sub kwalitee_indicators{
code=>sub {
my $d=shift;
my $yaml=$d->{meta_yml};
- return $yaml->{requires}{perl} ? 1 : 0;
+ return ref $yaml->{requires} eq ref {} && $yaml->{requires}{perl} ? 1 : 0;
},
},
];

0 comments on commit 5180725

Please sign in to comment.