gitweb: (style) use chomp without parentheses consistently.

It seems that gitweb tries to consistently use chomp without parentheses
around its operands, but there were two places that said "chomp($var);".

Let's be consistent.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2006-11-24 14:04:01 -08:00
parent 793c400cc1
commit 7002243f7e

View File

@ -2918,7 +2918,7 @@ sub git_tag {
print "<div class=\"page_body\">"; print "<div class=\"page_body\">";
my $comment = $tag{'comment'}; my $comment = $tag{'comment'};
foreach my $line (@$comment) { foreach my $line (@$comment) {
chomp($line); chomp $line;
print esc_html($line, -nbsp=>1) . "<br/>\n"; print esc_html($line, -nbsp=>1) . "<br/>\n";
} }
print "</div>\n"; print "</div>\n";
@ -2988,7 +2988,7 @@ HTML
} }
} }
my $data = $_; my $data = $_;
chomp($data); chomp $data;
my $rev = substr($full_rev, 0, 8); my $rev = substr($full_rev, 0, 8);
my $author = $meta->{'author'}; my $author = $meta->{'author'};
my %date = parse_date($meta->{'author-time'}, my %date = parse_date($meta->{'author-time'},