diff options
author | Eric Wong <e@80x24.org> | 2022-09-10 08:17:10 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-10 19:50:39 +0000 |
commit | 7e2f017fdde71d74ef29a43e9ee966daba42b2f4 (patch) | |
tree | 99eed1f554f544162582e4159bc0239ee97da5fb /lib/PublicInbox/View.pm | |
parent | 41c999da8f25bbe822366ffe4ac65c953ea40679 (diff) | |
download | public-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.pm | 3 |
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}; |