]> git.donarmstrong.com Git - perltidy.git/commitdiff
add 2 missing elses using -ame
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 4 Jan 2024 02:24:56 +0000 (18:24 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 4 Jan 2024 02:24:56 +0000 (18:24 -0800)
lib/Perl/Tidy/Formatter.pm

index ce8eb8ca5f90097c17c535aa66f49cd353c2b389..bd5620eaa4b9c88e477bb705f1943d909f074e0a 100644 (file)
@@ -9378,6 +9378,9 @@ EOM
                         $push_block_stack->($seqno_brace);
                     }
                 }
+                else {
+                    # no other keywords to check
+                }
             }
 
             #--------------
@@ -19327,6 +19330,9 @@ sub starting_one_line_block {
                 $i_start = $i_eq;
             }
         }
+        else {
+            # $i_start is 0 - cannot back up
+        }
     }
     elsif ( $previous_nonblank_token eq ')' ) {