about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTPD.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-07 19:55:29 +0000
committerEric Wong <e@80x24.org>2016-07-07 19:56:40 +0000
commit4a1612ec77c1904b4ba44422ec8cfade3fe603f4 (patch)
treeaaf30602a83eef1c4035632e0ed55c50b677ccad /lib/PublicInbox/NNTPD.pm
parent070f24660dffd35c4cf7151eb994e17029562894 (diff)
downloadpublic-inbox-4a1612ec77c1904b4ba44422ec8cfade3fe603f4.tar.gz
Fixes: 33cef7f24d3d ("config: introduce each_inbox for iteration")
Diffstat (limited to 'lib/PublicInbox/NNTPD.pm')
-rw-r--r--lib/PublicInbox/NNTPD.pm2
1 files changed, 1 insertions, 1 deletions
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";