Skip to content

Commit 64b3dff

Browse files
charsbardaxim
authored andcommitted
this file field is required, but may happen to be undef when META.yml is broken
1 parent c30a056 commit 64b3dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Module/CPANTS/Kwalitee/FindModules.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ sub analyse {
2121
my $provides = $me->d->{meta_yml}{provides};
2222
while (my ($module,$data)=each %$provides) {
2323
next unless ref $data eq ref {}; # ignore wrong format
24-
my $file=$data->{file};
24+
my $file=$data->{file} || '';
2525
my $found={
2626
module=>$module,
27-
file=>$data->{file},
27+
file=>$file,
2828
in_basedir=>0,
2929
in_lib=>0,
3030
};

0 commit comments

Comments
 (0)