diff options
author | Eric Wong <e@80x24.org> | 2021-08-17 08:52:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-18 11:41:31 +0000 |
commit | 29dd03ae81565f1430a39969b5b5d01dac68071c (patch) | |
tree | 4181ba69752452567d9153ecb3ff89db35ea1180 /lib/PublicInbox/LeiBlob.pm | |
parent | 38f2f94b97199f0f81fb93ab6d3c34651b661d6c (diff) | |
download | public-inbox-29dd03ae81565f1430a39969b5b5d01dac68071c.tar.gz |
lei: add ->lms shortcut for LeiMailSync
We access this read-only in many places (and will in more), so provide a shortcut to simplify callers.
Diffstat (limited to 'lib/PublicInbox/LeiBlob.pm')
-rw-r--r-- | lib/PublicInbox/LeiBlob.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiBlob.pm b/lib/PublicInbox/LeiBlob.pm index 3158ca3b..21003894 100644 --- a/lib/PublicInbox/LeiBlob.pm +++ b/lib/PublicInbox/LeiBlob.pm @@ -133,8 +133,7 @@ sub lei_blob { } my $ce = $?; return if $ce == 0; - my $sto = $lei->_lei_store; - my $lms = $sto ? $sto->search->lms : undef; + my $lms = $lei->lms; if (my $bref = $lms ? $lms->local_blob($blob, 1) : undef) { defined($lei->{-attach_idx}) and return extract_attach($lei, $blob, $bref); |