]> Sergey Matveev's repositories - public-inbox.git/commitdiff
config: tiny cleanup to use _array() sub
authorEric Wong <e@80x24.org>
Thu, 31 Jan 2019 08:28:41 +0000 (08:28 +0000)
committerEric Wong <e@80x24.org>
Thu, 31 Jan 2019 08:28:41 +0000 (08:28 +0000)
lib/PublicInbox/Config.pm

index ccfc114f9888a7da1711ab9a582c825470afc913..da443e580eb3a72692d10541690140b53b23314c 100644 (file)
@@ -32,7 +32,7 @@ sub new {
        $self->{-code_repos} ||= {}; # nick => PublicInbox::Git object
 
        if (my $no = delete $self->{'publicinbox.noobfuscate'}) {
-               $no = [ $no ] if ref($no) ne 'ARRAY';
+               $no = _array($no);
                my @domains;
                foreach my $n (@$no) {
                        my @n = split(/\s+/, $n);