Skip to content

Commit 054c20f

Browse files
committed
tidy
1 parent eec397c commit 054c20f

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

lib/MetaCPAN/Query/Release.pm

+17-11
Original file line numberDiff line numberDiff line change
@@ -366,16 +366,22 @@ sub by_author_and_names {
366366
query => {
367367
bool => {
368368
should => [
369-
map { +{
370-
query => {
371-
bool => {
372-
must => [
373-
{ term => { author => uc($_->{author}) } },
374-
{ term => { 'name' => $_->{name} } },
375-
]
369+
map {
370+
+{
371+
query => {
372+
bool => {
373+
must => [
374+
{
375+
term => {
376+
author => uc( $_->{author} )
377+
}
378+
},
379+
{ term => { 'name' => $_->{name} } },
380+
]
381+
}
376382
}
377383
}
378-
} } @$releases
384+
} @$releases
379385
]
380386
}
381387
}
@@ -389,15 +395,15 @@ sub by_author_and_names {
389395
return unless $ret->{hits}{total};
390396

391397
my @releases;
392-
for my $hit (@{ $ret->{hits}{hits} }) {
398+
for my $hit ( @{ $ret->{hits}{hits} } ) {
393399
my $src = $hit->{_source};
394400
single_valued_arrayref_to_scalar($src);
395401
push @releases, $src;
396402
}
397403

398404
return {
399-
took => $ret->{took},
400-
total => $ret->{hits}{total},
405+
took => $ret->{took},
406+
total => $ret->{hits}{total},
401407
releases => \@releases,
402408
};
403409
}

0 commit comments

Comments
 (0)