]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: (style) use chomp without parentheses consistently.
authorJunio C Hamano <redacted>
Fri, 24 Nov 2006 22:04:01 +0000 (14:04 -0800)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
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 <redacted>
gitweb.perl

index a7dbdaa77100c28c9ca47bce84f832e9fe49911a7ea0a15508eea6974034daf4..b1d0a3e4c664378aca3bf2265198f03ccb3c277360b2a41190da5e7733b042c8 100755 (executable)
@@ -2919,7 +2919,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";
@@ -2989,7 +2989,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'},
This page took 0.294811 seconds and 4 git commands to generate.