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 A4B831F59D for ; Mon, 22 Aug 2022 02:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1661135626; bh=h2vstuenovtYAPRx/P6cK0zVG7GS5rxSxQs2MvtZ/m0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ep5i8rzIs6wcGbBTLJac1srGRSKIdmtytwGBoE2oX47bOmNWfD53U3ziNXL9HsW/F Xu5Cq2iPRfZha709oIG/zTvqFteT3mwY0nokhQifzvGzKAwjnd9Nv70e5NhdDR/QD3 05UpUkOP0UkputmsFvvQCj1tI4yPvKUz/FxrtdVY= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/7] config: fix confusing space in ->repo_objs Date: Mon, 22 Aug 2022 02:33:40 +0000 Message-Id: <20220822023346.938859-2-e@80x24.org> In-Reply-To: <20220822023346.938859-1-e@80x24.org> References: <20220822023346.938859-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's actually valid Perl to have "$foo ->{field} = ..." but it's confusing and I noticed it while tracking down a configuration error. --- lib/PublicInbox/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index ad8b8e9d..1b5d87e2 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -402,7 +402,7 @@ sub repo_objs { push @repo_objs, $repo if $repo; } if (scalar @repo_objs) { - $ibxish ->{-repo_objs} = \@repo_objs; + $ibxish->{-repo_objs} = \@repo_objs; } else { delete $ibxish->{coderepo}; }