]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Cleanup - chomp $line in consistent style
authorJakub Narebski <redacted>
Sun, 30 Jul 2006 02:08:17 +0000 (04:08 +0200)
committerLady <redacted>
Sat, 4 Apr 2026 18:43:38 +0000 (14:43 -0400)
Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.cgi

index 85f02fc03411176c8febb3abaa5e7db01209b93cebd5ceb2b02a9fa7c4001264..e644bc03cc523ed0f61f1126de036126cb71294c9f954296820649f64634f512 100755 (executable)
@@ -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";
This page took 0.19107 seconds and 4 git commands to generate.