about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-07-30 12:18:54 +0000
committerEric Wong <e@80x24.org>2021-07-31 00:14:14 +0000
commitb38ffe92ee5ccb5eb4e5892e8cafba85303cadfc (patch)
treea9f4a13951ef510f820163bdc64e27b6ac5e560f /lib/PublicInbox
parentf72e56e40eb41e720fb4dfefc4cd9a8e50971fe7 (diff)
downloadpublic-inbox-b38ffe92ee5ccb5eb4e5892e8cafba85303cadfc.tar.gz
No callers pass an unblessed pathname to index_inbox,
only Inbox object refs.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/Admin.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm
index eb38dd8f..d5f867a2 100644
--- a/lib/PublicInbox/Admin.pm
+++ b/lib/PublicInbox/Admin.pm
@@ -247,7 +247,7 @@ sub index_inbox {
                 return if PublicInbox::Eml::warn_ignore(@_);
                 warn($idx->{current_info}, ': ', @_);
         };
-        if (ref($ibx) && $ibx->version == 2) {
+        if ($ibx->version == 2) {
                 eval { require PublicInbox::V2Writable };
                 die "v2 requirements not met: $@\n" if $@;
                 $ibx->{-creat_opt}->{nproc} = $jobs;