Skip to content

Commit

Permalink
gitweb: (style) use chomp without parentheses consistently.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Nov 24, 2006
1 parent 793c400 commit 7002243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -2988,7 +2988,7 @@ sub git_blame2 {
}
}
my $data = $_;
chomp($data);
chomp $data;
my $rev = substr($full_rev, 0, 8);
my $author = $meta->{'author'};
my %date = parse_date($meta->{'author-time'},
Expand Down

0 comments on commit 7002243

Please sign in to comment.