]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Watch.pm
get rid of unnecessary bytes::length usage
[public-inbox.git] / lib / PublicInbox / Watch.pm
index 05956cbb48486e60faa3d17740c2e5cf7ee17434..86dae91fd65149849966f3b6e7c968be3930289e 100644 (file)
@@ -53,8 +53,7 @@ sub new {
        # indefinitely...
        foreach my $pfx (qw(publicinboxwatch publicinboxlearn)) {
                my $k = "$pfx.watchspam";
-               defined(my $dirs = $cfg->{$k}) or next;
-               $dirs = PublicInbox::Config::_array($dirs);
+               my $dirs = $cfg->get_all($k) // next;
                for my $dir (@$dirs) {
                        my $uri;
                        if (is_maildir($dir)) {