diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-07-30 04:08:17 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-30 18:35:21 -0700 |
commit | cefda27f741a948a78ce27180f5332c2d19199c4 (patch) | |
tree | 66bc5beb8fc97972d46c43ff89c13886d7f00205 /gitweb | |
parent | 044bfdc8cbc4955f20afd7f9a245dfc20527ecbd (diff) | |
download | git-cefda27f741a948a78ce27180f5332c2d19199c4.tar.gz git-cefda27f741a948a78ce27180f5332c2d19199c4.tar.xz |
gitweb: Cleanup - chomp $line in consistent style
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index bf3e2ca5d..e7ae65adf 100755 --- a/gitweb/gitweb.cgi +++ b/gitweb/gitweb.cgi @@ -635,7 +635,7 @@ sub git_diff_print { $/ = "\n"; } else { while (my $line = <$fd>) { - chomp($line); + chomp $line; my $char = substr($line, 0, 1); my $diff_class = ""; if ($char eq '+') { @@ -944,7 +944,7 @@ sub read_info_ref { # c39ae07f393806ccf406ef966e9a15afc43cc36a refs/tags/v2.6.11^{} open my $fd, "$projectroot/$project/info/refs" or return; while (my $line = <$fd>) { - chomp($line); + chomp $line; if ($line =~ m/^([0-9a-fA-F]{40})\t.*$type\/([^\^]+)/) { if (defined $refs{$1}) { $refs{$1} .= " / $2"; |