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.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 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 D32861F4B7 for ; Mon, 8 Jul 2019 07:39:05 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/3] httpd: (cleanup) use reference instead of *glob Date: Mon, 8 Jul 2019 07:39:04 +0000 Message-Id: <20190708073905.15757-3-e@80x24.org> In-Reply-To: <20190708073905.15757-1-e@80x24.org> References: <20190708073905.15757-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: *glob notation isn't always necessary, and there's no need to disable 'once' warnings, this way. --- lib/PublicInbox/HTTPD.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/PublicInbox/HTTPD.pm b/lib/PublicInbox/HTTPD.pm index b0bf94ad..d10ec51c 100644 --- a/lib/PublicInbox/HTTPD.pm +++ b/lib/PublicInbox/HTTPD.pm @@ -39,10 +39,7 @@ sub new { # The rest of our PSGI code is generic, relying # on "pull" model using "getline" to prevent # over-buffering. - 'pi-httpd.async' => do { - no warnings 'once'; - *pi_httpd_async - }, + 'pi-httpd.async' => \&pi_httpd_async ); bless { app => $app, -- EW