Skip to content

Commit bf73a39

Browse files
committed
return empty string instead of 0 from is_in_test_directory
1 parent afaf583 commit bf73a39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/MetaCPAN/Document/File.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ Returns true if the file is below a t directory.
632632
sub is_in_test_directory {
633633
my $self = shift;
634634
my @parts = split m{/}, $self->path;
635-
return ( any { $_ eq 't' } @parts ) ? 1 : 0;
635+
return any { $_ eq 't' } @parts;
636636
}
637637

638638
=head2 add_module

t/document/file.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ my %stub = (
1717
't/whomp' => 1,
1818
'foo/t/bar' => 1,
1919
'cuppa/t' => 1,
20-
'foo/bart/shorts' => 0,
21-
'tit/mouse' => 0,
22-
'say/wat' => 0,
20+
'foo/bart/shorts' => q{},
21+
'tit/mouse' => q{},
22+
'say/wat' => q{},
2323
);
2424

2525
foreach my $path ( keys %paths ) {

0 commit comments

Comments
 (0)