Skip to content

Commit ec13b96

Browse files
deploy_mapping() method - change variable name
1 parent fa99db6 commit ec13b96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/MetaCPAN/Script/Mapping.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ sub run {
147147
my $self = shift;
148148

149149
if ( $self->await ) {
150+
$self->delete_index if $self->arg_delete_index;
150151
$self->create_index if $self->arg_create_index;
151152
$self->update_index if $self->arg_update_index;
152-
$self->delete_index if $self->arg_delete_index;
153153
$self->copy_type if $self->copy_to_index;
154154
$self->empty_type if $self->delete_from_type;
155155
$self->list_types if $self->arg_list_types;
@@ -489,7 +489,7 @@ sub _build_aliases {
489489

490490
sub deploy_mapping {
491491
my $self = shift;
492-
my $imappingok = 0;
492+
my $is_mapping_ok = 0;
493493

494494
$self->are_you_sure(
495495
'this will delete EVERYTHING and re-create the (empty) indexes');
@@ -534,12 +534,12 @@ sub deploy_mapping {
534534
}
535535

536536
$self->check_health(1);
537-
$imappingok = $self->mappings_valid( $rmappings, $raliases );
537+
$is_mapping_ok = $self->mappings_valid( $rmappings, $raliases );
538538

539539
# done
540540
log_info {"Done."};
541541

542-
return $imappingok;
542+
return $is_mapping_ok;
543543
}
544544

545545
sub aliases_valid {

0 commit comments

Comments
 (0)