From: Steve Hancock Date: Fri, 2 Feb 2024 01:14:19 +0000 (-0800) Subject: minor optimization X-Git-Tag: 20240202.01~12 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=eecd3e26eaad2ca203ac82e6e0c6039c1dacc33e;p=perltidy.git minor optimization --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 74140f30..03cb6b7e 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -20257,16 +20257,15 @@ EOM # gather info needed by sub break_long_lines if ( $type_sequence_to_go[$i] ) { - my $seqno = $type_sequence_to_go[$i]; - my $token = $tokens_to_go[$i]; # remember indexes of any tokens controlling xci # in this batch. This list is needed by sub undo_ci. + my $seqno = $type_sequence_to_go[$i]; if ( $self->[_ris_seqno_controlling_ci_]->{$seqno} ) { push @ix_seqno_controlling_ci, $i; } - if ( $is_opening_sequence_token{$token} ) { + if ( $is_opening_sequence_token{ $tokens_to_go[$i] } ) { if ( $self->[_rbreak_container_]->{$seqno} ) { $self->set_forced_breakpoint($i); }