diff options
author | Eric Wong <e@80x24.org> | 2021-04-19 14:48:59 -0900 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-04-20 19:02:45 +0000 |
commit | c192608e62699d19973c88f292d95c227579847c (patch) | |
tree | b89291b08eb1fd3eea6fe64a5bc1723738e4947e /lib/PublicInbox/Watch.pm | |
parent | 81bd80b8806ef92bdedff67ef97def2acac5583c (diff) | |
download | public-inbox-c192608e62699d19973c88f292d95c227579847c.tar.gz |
config: favor ->get_all when possible
It's slightly less code.
Diffstat (limited to 'lib/PublicInbox/Watch.pm')
-rw-r--r-- | lib/PublicInbox/Watch.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm index 05956cbb..86dae91f 100644 --- a/lib/PublicInbox/Watch.pm +++ b/lib/PublicInbox/Watch.pm @@ -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)) { |