aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-24 14:04:01 -0800
committerJunio C Hamano <junkio@cox.net>2006-11-24 14:07:41 -0800
commit7002243f7ee7eb557a1e49420487e150730ff46f (patch)
tree1fa91e175b1be64b0fb8a86b8a846bd6d21eb04d /gitweb
parent793c400cc1028cca4078281d69aa43fac2d6d0ba (diff)
downloadgit-7002243f7ee7eb557a1e49420487e150730ff46f.tar.gz
git-7002243f7ee7eb557a1e49420487e150730ff46f.tar.xz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl4
1 files 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 "<div class=\"page_body\">";
my $comment = $tag{'comment'};
foreach my $line (@$comment) {
- chomp($line);
+ chomp $line;
print esc_html($line, -nbsp=>1) . "<br/>\n";
}
print "</div>\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'},