diff options
author | Eric Wong <e@yhbt.net> | 2020-06-01 10:06:46 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-03 04:04:21 +0000 |
commit | aae8eb6de7b8ed4b1370971e91802b12da7f81aa (patch) | |
tree | 69b1d4e1f6993098e3a35ab8d6f0a21e104044ab /lib/PublicInbox/SearchView.pm | |
parent | 30ac717281ae224a9c117361ca941818adc69cf3 (diff) | |
download | public-inbox-aae8eb6de7b8ed4b1370971e91802b12da7f81aa.tar.gz |
We can simplify WwwAtomStream callbacks by performing ->smsg_eml calls in the `feed_entry' sub itself. This simplifies callers, by reducing the number of places which can load an Eml object into memory.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r-- | lib/PublicInbox/SearchView.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 4336e4d9..249cf539 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -340,7 +340,7 @@ sub adump_i { my $smsg = eval { PublicInbox::Smsg::from_mitem($mi, $ctx->{srch}); } or next; - $ctx->{-inbox}->smsg_mime($smsg) and return $smsg; + return $smsg; } } |