]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei_overview: clear redundant ovv_buf definition
authorEric Wong <e@80x24.org>
Wed, 27 Jan 2021 09:42:28 +0000 (03:42 -0600)
committerEric Wong <e@80x24.org>
Fri, 29 Jan 2021 05:04:40 +0000 (05:04 +0000)
Declaring "my $buf" inside that `if' branch was useless, so
we've been declaring it per-callback when {l2m} isn't in use.

lib/PublicInbox/LeiOverview.pm

index ea35871cc5b73b0827f276c41a7ed2aa962fa4e8..f9a281387e6aea5738e88db7fe7f748e4bceb6fb 100644 (file)
@@ -208,7 +208,6 @@ sub ovv_each_smsg_cb { # runs in wq worker usually
                $json = $pkg->new;
                $json->utf8->canonical;
                $json->ascii(1) if $lei->{opt}->{ascii};
-               $lei->{ovv_buf} = \(my $buf = '');
        }
        my $l2m = $lei->{l2m} or $dedupe->prepare_dedupe;
        if ($l2m && !$ibxish) { # remote https?:// mboxrd