From: Steve Hancock Date: Wed, 9 Jan 2019 19:02:37 +0000 (-0800) Subject: fixed bug in some unused code for ternary operators X-Git-Tag: 20190601~23 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=72e3bf4f35c2f821e48d3c5bba55f6f0b2485548;p=perltidy.git fixed bug in some unused code for ternary operators --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index cba1e5b2..43dbb473 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -2385,10 +2385,10 @@ sub respace_tokens { # These are not yet used but could be useful else { if ( $token eq '?' ) { - $K_opening_ternary->{$type_sequence} = $KK; + $K_opening_ternary->{$type_sequence} = $KK_new; } elsif ( $token eq ':' ) { - $K_closing_ternary->{$type_sequence} = $KK; + $K_closing_ternary->{$type_sequence} = $KK_new; } else { # shouldn't happen