]> git.donarmstrong.com Git - perltidy.git/commitdiff
simplification
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 29 Aug 2022 16:21:01 +0000 (09:21 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 29 Aug 2022 16:21:01 +0000 (09:21 -0700)
lib/Perl/Tidy/Formatter.pm

index 262ddcaed3925d68c649331f9f8dcc6b60e08f3c..baf30290a1fe2f98bcaa3687c67278b8143edf80 100644 (file)
@@ -19111,9 +19111,8 @@ EOM
             $block_type    = $block_type_to_go[$i];
             $token         = $tokens_to_go[$i];
             $type_sequence = $type_sequence_to_go[$i];
-            my $next_type       = $types_to_go[ $i + 1 ];
-            my $next_token      = $tokens_to_go[ $i + 1 ];
-            my $i_next_nonblank = ( ( $next_type eq 'b' ) ? $i + 2 : $i + 1 );
+
+            my $i_next_nonblank = $inext_to_go[$i];
             $next_nonblank_type       = $types_to_go[$i_next_nonblank];
             $next_nonblank_token      = $tokens_to_go[$i_next_nonblank];
             $next_nonblank_block_type = $block_type_to_go[$i_next_nonblank];