From 72e3bf4f35c2f821e48d3c5bba55f6f0b2485548 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Wed, 9 Jan 2019 11:02:37 -0800 Subject: [PATCH] fixed bug in some unused code for ternary operators --- lib/Perl/Tidy/Formatter.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5