diff options
-rw-r--r-- | lib/PublicInbox/LeiOverview.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm index 538d6bd5..8781259a 100644 --- a/lib/PublicInbox/LeiOverview.pm +++ b/lib/PublicInbox/LeiOverview.pm @@ -99,12 +99,13 @@ sub ovv_begin { # called once by parent (via PublicInbox::EOFpipe) sub ovv_end { my ($self, $lei) = @_; + my $out = $lei->{1} or return; if ($self->{fmt} eq 'json') { # JSON doesn't allow trailing commas, and preventing # trailing commas is a PITA when parallelizing outputs - print { $lei->{1} } "null]\n"; + print $out "null]\n"; } elsif ($self->{fmt} eq 'concatjson') { - print { $lei->{1} } "\n"; + print $out "\n"; } } |