Skip to content

Commit 6966688

Browse files
committed
tidy
1 parent a86bb47 commit 6966688

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

bin/author.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ ($id)
199199
return undef
200200
unless $dir->is_dir;
201201

202-
my $cpan_file_map = cpan_file_map( $findls_file );
202+
my $cpan_file_map = cpan_file_map($findls_file);
203203
my $author_cpan_files = $cpan_file_map->{$id}
204204
or return undef;
205205

bin/backpan.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
);
1919

2020
# setup
21-
my $cpan_file_map = cpan_file_map( $findls_file );
21+
my $cpan_file_map = cpan_file_map($findls_file);
2222
my $es_release = MetaCPAN::ES->new( index => "release" );
2323
my $es_file = MetaCPAN::ES->new( index => "file" );
2424

lib/MetaCPAN/ES.pm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ sub new ( $class, %args ) {
3737
}, $class;
3838
}
3939

40-
sub test ( $self ) {
41-
return !!(
42-
ref($self) eq __PACKAGE__
43-
and ref($self->{es})
44-
and ref($self->{es}) =~ /^Search::Elasticsearch/
45-
);
40+
sub test ($self) {
41+
return !!( ref($self) eq __PACKAGE__
42+
and ref( $self->{es} )
43+
and ref( $self->{es} ) =~ /^Search::Elasticsearch/ );
4644
}
4745

4846
sub index ( $self, %args ) {

lib/MetaCPAN/Mapper.pm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ sub new ( $class, %args ) {
3535
}, $class;
3636
}
3737

38-
sub test ( $self ) {
39-
return !!(
40-
ref($self) eq __PACKAGE__
41-
and ref($self->{es})
42-
and ref($self->{es}) =~ /^Search::Elasticsearch/
43-
);
38+
sub test ($self) {
39+
return !!( ref($self) eq __PACKAGE__
40+
and ref( $self->{es} )
41+
and ref( $self->{es} ) =~ /^Search::Elasticsearch/ );
4442
}
4543

4644
sub index_exists ( $self, $index ) {

t/00_setup.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ subtest 'Check Files' => sub {
2929
ok( $d_modules->child('02packages.details.txt.gz'),
3030
"Found 02packages.details.txt.gz" );
3131
ok( $d_modules->child('06perms.txt'), "Found 06perms.txt" );
32-
ok( $d_indices->child('find-ls.gz'), "Found find-ls.gz" );
32+
ok( $d_indices->child('find-ls.gz'), "Found find-ls.gz" );
3333
};
3434

3535
my @packages = qw<

0 commit comments

Comments
 (0)