From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E111D2070D; Thu, 7 Jul 2016 19:55:29 +0000 (UTC) Date: Thu, 7 Jul 2016 19:55:29 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/3] nntpd: avoid exiting subroutine via next Message-ID: <20160707195529.GA20748@dcvr.yhbt.net> References: <20160702215030.7692-1-e@80x24.org> <20160702215030.7692-2-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160702215030.7692-2-e@80x24.org> List-Id: Fixes: 33cef7f24d3d ("config: introduce each_inbox for iteration") --- lib/PublicInbox/NNTPD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index a67811b..eb43a2b 100644 --- a/lib/PublicInbox/NNTPD.pm +++ b/lib/PublicInbox/NNTPD.pm @@ -25,7 +25,7 @@ sub refresh_groups () { my @list; $pi_config->each_inbox(sub { my ($ng) = @_; - my $ngname = $ng->{newsgroup} or next; + my $ngname = $ng->{newsgroup} or return; if (ref $ngname) { warn 'multiple newsgroups not supported: '. join(', ', @$ngname). "\n"; -- EW