From: Eric Wong Date: Thu, 7 Jul 2016 19:55:29 +0000 (+0000) Subject: nntpd: avoid exiting subroutine via next X-Git-Tag: v1.0.0~294 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=4a1612ec77c1904b4ba44422ec8cfade3fe603f4 nntpd: avoid exiting subroutine via next Fixes: 33cef7f24d3d ("config: introduce each_inbox for iteration") --- diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index a67811bc..eb43a2bf 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";