diff options
author | Eric Wong <e@80x24.org> | 2021-07-30 12:18:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-07-31 00:14:14 +0000 |
commit | b38ffe92ee5ccb5eb4e5892e8cafba85303cadfc (patch) | |
tree | a9f4a13951ef510f820163bdc64e27b6ac5e560f | |
parent | f72e56e40eb41e720fb4dfefc4cd9a8e50971fe7 (diff) | |
download | public-inbox-b38ffe92ee5ccb5eb4e5892e8cafba85303cadfc.tar.gz |
No callers pass an unblessed pathname to index_inbox, only Inbox object refs.
-rw-r--r-- | lib/PublicInbox/Admin.pm | 2 |
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; |