Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
account for files with no modules in dist page
  • Loading branch information
haarg committed Nov 19, 2016
1 parent b876d6c commit 8158f3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/MetaCPAN/Web/Controller/Release.pm
Expand Up @@ -184,9 +184,9 @@ sub _files_to_categories {
);

my @modules
= is_arrayref( $f->{module} )
? @{ $f->{module} }
: $f->{module};
= is_arrayref( $f->{module} ) ? @{ $f->{module} }
: defined $f->{module} ? $f->{module}
: ();

if ( $f->{documentation} and @modules ) {
push @{ $ret->{modules} }, $f;
Expand Down

0 comments on commit 8158f3a

Please sign in to comment.