about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-10 08:17:10 +0000
committerEric Wong <e@80x24.org>2022-09-10 19:50:39 +0000
commit7e2f017fdde71d74ef29a43e9ee966daba42b2f4 (patch)
tree99eed1f554f544162582e4159bc0239ee97da5fb /lib/PublicInbox/View.pm
parent41c999da8f25bbe822366ffe4ac65c953ea40679 (diff)
downloadpublic-inbox-7e2f017fdde71d74ef29a43e9ee966daba42b2f4.tar.gz
Just something I noticed while evaluating this subroutine
for the buffering overhaul.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 3282d4f9..08ba54bb 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -302,8 +302,7 @@ sub _th_index_lite {
         my $rv = '';
         my $mapping = $ctx->{mapping} or return $rv;
         my $pad = '  ';
-        my $mid_map = $mapping->{$mid_raw};
-        defined $mid_map or
+        my $mid_map = $mapping->{$mid_raw} //
                 return 'public-inbox BUG: '.ascii_html($mid_raw).' not mapped';
         my ($attr, $node, $idx, $level) = @$mid_map;
         my $children = $node->{children};