Skip to content

Commit

Permalink
Merge pull request #655 from metacpan/mickey/minor_script_cleanup
Browse files Browse the repository at this point in the history
Minor cleanup: 'es' is accessible directly
  • Loading branch information
oalders committed May 17, 2017
2 parents 34dde30 + ec37396 commit 9d83c7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Script/CPANTesters.pm
Expand Up @@ -49,7 +49,7 @@ has _bulk => (
isa => 'Search::Elasticsearch::Bulk',
lazy => 1,
default => sub {
$_[0]->model->es->bulk_helper(
$_[0]->es->bulk_helper(
index => $_[0]->index->name,
type => 'release'
);
Expand All @@ -73,7 +73,7 @@ sub run {
sub index_reports {
my $self = shift;

my $es = $self->model->es;
my $es = $self->es;

log_info { 'Mirroring ' . $self->db };
my $db = $self->mirror_file;
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Script/Latest.pm
Expand Up @@ -171,7 +171,7 @@ sub run {
}
}

my $bulk = $self->model->es->bulk_helper(
my $bulk = $self->es->bulk_helper(
index => $self->index->name,
type => 'file'
);
Expand Down

0 comments on commit 9d83c7a

Please sign in to comment.