Skip to content

Commit

Permalink
Minor cleanup: 'es' is accessible directly
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed May 17, 2017
1 parent 415adf6 commit ec37396
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 ec37396

Please sign in to comment.