From 3672f8765e3d4e15bc470dd18c6c8011dad296e0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 8 Jul 2019 07:22:31 +0000 Subject: httpd: (cleanup) use reference instead of *glob *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, -- cgit v1.2.3-24-ge0c7