projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1366b6
)
lei_overview: remove pointless map {} op
author
Eric Wong <e@80x24.org>
Thu, 4 Aug 2022 08:17:00 +0000 (08:17 +0000)
committer
Eric Wong <e@80x24.org>
Thu, 4 Aug 2022 20:09:34 +0000 (20:09 +0000)
We can rely on //g and autovivification, here.
lib/PublicInbox/LeiOverview.pm
patch
|
blob
|
history
diff --git
a/lib/PublicInbox/LeiOverview.pm
b/lib/PublicInbox/LeiOverview.pm
index 2d3db9f4ab929ac3154b19bced22f0bbf0288350..066c40bd94eafdb4de8e37270b4a442f5f55e239 100644
(file)
--- 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;