From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 1AC7A1F62D for ; Sat, 10 Sep 2022 08:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1662797935; bh=lOinZpuKCFVXtzlUQlfj7l4xgLUtNnl7KHgKlRaH12g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W6illscWcUzVP7e456Jjmrem175tkqD1ie5ETuxlTcl+HbQ4gh7sbaC4BUtNRiYBx ywpT4NLLDrulampjrfeTXlSTIUqIsdZQ0dqDw9RBEYnrweByTWVM2ZsY0a9jMEKOgm hJmRoSll/jo2t3KIThoUyBOeozd3yuf2ifx1hr/M= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 19/38] view: _th_index_lite: use `//' defined-or op Date: Sat, 10 Sep 2022 08:17:10 +0000 Message-Id: <20220910081729.2011934-20-e@80x24.org> In-Reply-To: <20220910081729.2011934-1-e@80x24.org> References: <20220910081729.2011934-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Just something I noticed while evaluating this subroutine for the buffering overhaul. --- lib/PublicInbox/View.pm | 3 +-- 1 file changed, 1 insertion(+), 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};