@matheusbsbs / matheus-bagliano / commits / 7002243f7e
Fork 0

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>

Junio C Hamano committed Nov 24, 2006 at 14:04 UTC 7002243f7ee7eb557a1e49420487e150730ff46f
1 file changed +2 -2
gitweb/gitweb.perl
+2 -2
@@ -2918,7 +2918,7 @@ sub git_tag {
2918 print "<div class=\"page_body\">";
2919 my $comment = $tag{'comment'};
2920 foreach my $line (@$comment) {
2921 - chomp($line);
2921 + chomp $line;
2922 print esc_html($line, -nbsp=>1) . "<br/>\n";
2923 }
2924 print "</div>\n";
@@ -2988,7 +2988,7 @@ HTML
2988 }
2989 }
2990 my $data = $_;
2991 - chomp($data);
2991 + chomp $data;
2992 my $rev = substr($full_rev, 0, 8);
2993 my $author = $meta->{'author'};
2994 my %date = parse_date($meta->{'author-time'},