diff options
author | Eric Wong <e@80x24.org> | 2021-09-03 08:54:23 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-03 08:57:33 +0000 |
commit | 7e29f0aa79e3e559379ebfa8bb8b17eabdb6db1a (patch) | |
tree | 21e727a980479ffcdb9ee261583f0699a8c28216 /lib/PublicInbox/LeiInspect.pm | |
parent | a73b85cc93e635e5f8a0520ab0f21177fb8de478 (diff) | |
download | public-inbox-7e29f0aa79e3e559379ebfa8bb8b17eabdb6db1a.tar.gz |
lei: use lei->lms in place of lse->lms in a few places
We can golf out some code and refcounts this way.
Diffstat (limited to 'lib/PublicInbox/LeiInspect.pm')
-rw-r--r-- | lib/PublicInbox/LeiInspect.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiInspect.pm b/lib/PublicInbox/LeiInspect.pm index 2d2ff1a0..2ade17af 100644 --- a/lib/PublicInbox/LeiInspect.pm +++ b/lib/PublicInbox/LeiInspect.pm @@ -206,8 +206,7 @@ sub lei_inspect { sub _complete_inspect { my ($lei, @argv) = @_; - my $sto = $lei->_lei_store or return; - my $lms = $sto->search->lms or return; + my $lms = $lei->lms or return; my $match_cb = $lei->complete_url_prepare(\@argv); map { $match_cb->($_) } $lms->folders; } |