* [PATCH 4/3] nntpd: avoid exiting subroutine via next
@ 2016-07-07 19:55 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-07-07 19:55 UTC (permalink / raw)
To: meta
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
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-07-02 21:50 [PATCH 0/3] misc NNTP improvements Eric Wong
2016-07-02 21:50 ` [PATCH 1/3] config: introduce each_inbox for iteration Eric Wong
2016-07-07 19:55 7% ` [PATCH 4/3] nntpd: avoid exiting subroutine via next Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).