about summary refs log tree commit homepage
path: root/lib/PublicInbox/ViewDiff.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/ViewDiff.pm')
-rw-r--r--lib/PublicInbox/ViewDiff.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/ViewDiff.pm b/lib/PublicInbox/ViewDiff.pm
index 6fe9a0d7..536bb9e3 100644
--- a/lib/PublicInbox/ViewDiff.pm
+++ b/lib/PublicInbox/ViewDiff.pm
@@ -50,12 +50,12 @@ sub diff_hunk ($$$$) {
 
         if (defined($spfx) && defined($oid_a) && defined($oid_b)) {
                 my ($n) = ($ca =~ /^-([0-9]+)/);
-                $n = defined($n) ? do { ++$n; "#n$n" } : '';
+                $n = defined($n) ? "#n$n" : '';
 
                 $$dst .= qq(@@ <a\nhref="$spfx$oid_a/s/$dctx->{Q}$n">$ca</a>);
 
                 ($n) = ($cb =~ /^\+([0-9]+)/);
-                $n = defined($n) ? do { ++$n; "#n$n" } : '';
+                $n = defined($n) ? "#n$n" : '';
                 $$dst .= qq( <a\nhref="$spfx$oid_b/s/$dctx->{Q}$n">$cb</a> @@);
         } else {
                 $$dst .= "@@ $ca $cb @@";