From 7002243f7ee7eb557a1e49420487e150730ff46f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 24 Nov 2006 14:04:01 -0800 Subject: [PATCH] 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 --- gitweb/gitweb.perl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 75e3502fe..6ae7e8035 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2918,7 +2918,7 @@ sub git_tag { print "
"; my $comment = $tag{'comment'}; foreach my $line (@$comment) { - chomp($line); + chomp $line; print esc_html($line, -nbsp=>1) . "
\n"; } print "
\n"; @@ -2988,7 +2988,7 @@ HTML } } my $data = $_; - chomp($data); + chomp $data; my $rev = substr($full_rev, 0, 8); my $author = $meta->{'author'}; my %date = parse_date($meta->{'author-time'}, -- 2.30.2