We can rely on //g and autovivification, here.
---
 lib/PublicInbox/LeiOverview.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index 2d3db9f4..066c40bd 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -143,7 +143,7 @@ sub _unbless_smsg {
        $smsg->{dt} = iso8601(delete $smsg->{ds}); # JMAP UTCDate
        $smsg->{pct} = get_pct($mitem) if $mitem;
        if (my $r = delete $smsg->{references}) {
-               $smsg->{refs} = [ map { $_ } ($r =~ m/$MID_EXTRACT/go) ];
+               @{$smsg->{refs}} = ($r =~ m/$MID_EXTRACT/go);
        }
        if (my $m = delete($smsg->{mid})) {
                $smsg->{'m'} = $m;

Reply via email to