From: Junio C Hamano Date: Fri, 24 Nov 2006 22:04:01 +0000 (-0800) Subject: gitweb: (style) use chomp without parentheses consistently. X-Git-Tag: v1.5.0-rc0~227 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=7002243f7ee7eb557a1e49420487e150730ff46f;p=git.git 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 --- 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'},