From: Steve Hancock Date: Tue, 15 Nov 2022 13:21:24 +0000 (-0800) Subject: add comment X-Git-Tag: 20221112.01~18 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d4395672676f79ff402a904f941567d466c1f837;p=perltidy.git add comment --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index f09a4725..1aa738ba 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -2510,6 +2510,8 @@ sub initialize_trailing_comma_rules { $option =~ s/^\s+//; $option =~ s/\s+$//; } + + # We need to use length() here because '0' is a possible option if ( defined($option) && length($option) ) { my $error_message; my %rule_hash; @@ -2605,7 +2607,7 @@ EOM } return; -} +} ## end sub initialize_trailing_comma_rules sub initialize_whitespace_hashes {