Skip to content

Commit

Permalink
fix warning: check uninitialized value
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Sep 6, 2016
1 parent 0f45d96 commit ab22228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Web/Controller/Release.pm
Expand Up @@ -198,7 +198,8 @@ sub _files_to_categories {
authorized => $_->{authorized}
},
grep {
$_->{name} ne $f->{documentation}
defined $_->{name}
and $_->{name} ne $f->{documentation}
and $_->{indexed}
and $_->{authorized}
} @modules;
Expand Down

0 comments on commit ab22228

Please sign in to comment.