X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FConfig.pm;h=0f002e5e62c260fbb5078bbbb25c67b1468fbbec;hp=41117ac535d49678020bdddb4f5e79092794defa;hb=8d2513221e73649aed85ce8c3f37f7025ec1fec9;hpb=b46de4da83d797281af9603f350e5b7105845eed diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 41117ac5..0f002e5e 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -377,8 +377,8 @@ sub get_1 { sub repo_objs { my ($self, $ibxish) = @_; - my $ibx_code_repos = $ibxish->{coderepo} or return; - $ibxish->{-repo_objs} //= do { + my $ibx_code_repos = $ibxish->{coderepo} // return; + $ibxish->{-repo_objs} // do { my $code_repos = $self->{-code_repos}; my @repo_objs; for my $nick (@$ibx_code_repos) { @@ -395,10 +395,9 @@ sub repo_objs { push @repo_objs, $repo if $repo; } if (scalar @repo_objs) { - \@repo_objs; + $ibxish ->{-repo_objs} = \@repo_objs; } else { delete $ibxish->{coderepo}; - undef; } } }