From: Steve Hancock Date: Fri, 8 Apr 2022 18:02:59 +0000 (-0700) Subject: fix 'eq' to be '==' X-Git-Tag: 20220217.03~12 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0ea3d908b88a03f70829468c933a8240b15df99d;p=perltidy.git fix 'eq' to be '==' --- diff --git a/lib/Perl/Tidy/VerticalAligner.pm b/lib/Perl/Tidy/VerticalAligner.pm index 73d5d01b..7f90714f 100644 --- a/lib/Perl/Tidy/VerticalAligner.pm +++ b/lib/Perl/Tidy/VerticalAligner.pm @@ -3254,10 +3254,10 @@ sub match_line_pairs { # left with scalars on the left. We will also prevent # any partial alignments. - # set return code 2 if the = is at line level, but - # set return code 1 if the = is below line level, i.e. - # sub new { my ( $p, $v ) = @_; bless \$v, $p } - # sub iter { my ($x) = @_; return undef if $$x < 0; return $$x--; } + # set return code 2 if the = is at line level, but + # set return code 1 if the = is below line level, i.e. + # sub new { my ( $p, $v ) = @_; bless \$v, $p } + # sub iter { my ($x) = @_; return undef if $$x < 0; return $$x--; } elsif ( ( index( $pat_m, ',' ) >= 0 ) ne ( index( $pat, ',' ) >= 0 ) ) @@ -3372,8 +3372,8 @@ sub match_line_pairs { $tok, $tok_m, $pat, $pat_m, $pad ); if ($match_code) { - if ( $match_code eq 1 ) { $i_nomatch = $i } - elsif ( $match_code eq 2 ) { $i_nomatch = 0 } + if ( $match_code == 1 ) { $i_nomatch = $i } + elsif ( $match_code == 2 ) { $i_nomatch = 0 } last; } }