about summary refs log tree commit homepage
path: root/lib/PublicInbox/Admin.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-05 23:23:34 +0000
committerEric Wong <e@yhbt.net>2020-01-06 10:20:55 +0000
commit42f390c5e4d8e6619d234a43aa5397c9977cf070 (patch)
treec3db02562a25a24b736a42fa902c90e27c6e068b /lib/PublicInbox/Admin.pm
parentb58d0f75857b8e3372cfd516f248ef70c9eea150 (diff)
downloadpublic-inbox-42f390c5e4d8e6619d234a43aa5397c9977cf070.tar.gz
No point in lazy-loading these, since they're always loaded
anyways and would not have portability problems on systems with
minimal dependencies.
Diffstat (limited to 'lib/PublicInbox/Admin.pm')
-rw-r--r--lib/PublicInbox/Admin.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm
index 44b44b6e..1f1b133d 100644
--- a/lib/PublicInbox/Admin.pm
+++ b/lib/PublicInbox/Admin.pm
@@ -9,7 +9,8 @@ use warnings;
 use Cwd 'abs_path';
 use base qw(Exporter);
 our @EXPORT_OK = qw(resolve_repo_dir);
-require PublicInbox::Config;
+use PublicInbox::Config;
+use PublicInbox::Inbox;
 use PublicInbox::Spawn qw(popen_rd);
 
 sub resolve_repo_dir {
@@ -68,7 +69,6 @@ sub unconfigured_ibx ($$) {
 
 sub resolve_inboxes ($;$$) {
         my ($argv, $opt, $cfg) = @_;
-        require PublicInbox::Inbox;
         $opt ||= {};
 
         $cfg //= eval { PublicInbox::Config->new };