Skip to content

Commit d8cbd60

Browse files
committed
fix changes/by_releases for releases without recorded changelog
1 parent d89f419 commit d8cbd60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/MetaCPAN/Server/Controller/Changes.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ sub by_releases : Path('by_releases') : Args(0) {
8383
for my $release ( @{ $ret->{releases} } ) {
8484
my ( $author, $name, $path )
8585
= @{$release}{qw(author name changes_file)};
86+
next
87+
unless $path;
8688
my $source = $c->model('Source')->path( $author, $name, $path )
8789
or next;
8890

0 commit comments

Comments
 (0)