From 4a1612ec77c1904b4ba44422ec8cfade3fe603f4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 Jul 2016 19:55:29 +0000 Subject: nntpd: avoid exiting subroutine via next Fixes: 33cef7f24d3d ("config: introduce each_inbox for iteration") --- lib/PublicInbox/NNTPD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/NNTPD.pm') 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"; -- cgit v1.2.3-24-ge0c7