about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchView.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-04-16 01:10:09 +0000
committerEric Wong <e@80x24.org>2019-04-16 20:58:23 +0000
commit6e6f7999361925e4c944f308df4bc32a1842cd69 (patch)
tree2e190ffc0b3ba4be68d82b28cb86a0d9826426ae /lib/PublicInbox/SearchView.pm
parenta94349cda5763507d665809676fccc7b34575a21 (diff)
downloadpublic-inbox-6e6f7999361925e4c944f308df4bc32a1842cd69.tar.gz
'$inbox' is more human-readable, so that is for the more
human-readable name in most cases.  Making our variable naming
more consistent should make the code easier-to-review and
harder to screw up.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r--lib/PublicInbox/SearchView.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index c33caec9..7ef6b075 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -231,7 +231,7 @@ sub mset_thread {
                 $r ? sort_relevance(\%pct) : *PublicInbox::View::sort_ds,
                 $ctx);
         my $skel = search_nav_bot($mset, $q). "<pre>";
-        my $inbox = $ctx->{-inbox};
+        my $ibx = $ctx->{-inbox};
         $ctx->{-upfx} = '';
         $ctx->{anchor_idx} = 1;
         $ctx->{cur_level} = 0;
@@ -252,7 +252,7 @@ sub mset_thread {
                 return unless $msgs;
                 my $smsg;
                 while (my $m = pop @$msgs) {
-                        $smsg = $inbox->smsg_mime($m) and last;
+                        $smsg = $ibx->smsg_mime($m) and last;
                 }
                 if ($smsg) {
                         return PublicInbox::View::index_entry($smsg, $ctx,