File tree 2 files changed +3
-112
lines changed
2 files changed +3
-112
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -255,11 +255,9 @@ sub delete_all {
255
255
|| $runtime_environment eq ' testing' );
256
256
257
257
if ($is_development ) {
258
- my $name = undef ;
259
-
260
258
$self -> are_you_sure(" ALL Indices will be deleted !!!" );
261
259
262
- foreach $name ( keys %{ $self -> indices_info } ) {
260
+ foreach my $name ( keys %{ $self -> indices_info } ) {
263
261
$self -> _delete_index($name );
264
262
}
265
263
}
@@ -652,9 +650,7 @@ sub _compare_mapping {
652
650
$imatch = 1;
653
651
654
652
if ( ref $rdeploy eq ' HASH' ) {
655
- my $sfield = undef ;
656
-
657
- foreach $sfield ( sort keys %$rdeploy ) {
653
+ foreach my $sfield ( sort keys %$rdeploy ) {
658
654
if ( defined $rdeploy -> {$sfield }
659
655
&& defined $rmodel -> {$sfield } )
660
656
{
@@ -730,9 +726,7 @@ sub _compare_mapping {
730
726
}
731
727
}
732
728
elsif ( ref $rdeploy eq ' ARRAY' ) {
733
- my $iindex = undef ;
734
-
735
- foreach $iindex (@$rdeploy ) {
729
+ foreach my $iindex (@$rdeploy ) {
736
730
if ( defined $rdeploy -> [$iindex ]
737
731
&& defined $rmodel -> [$iindex ] )
738
732
{
You can’t perform that action at this time.
0 commit comments