]> Sergey Matveev's repositories - public-inbox.git/commitdiff
admin: index_inbox: drop unnecessary check
authorEric Wong <e@80x24.org>
Fri, 30 Jul 2021 12:18:54 +0000 (12:18 +0000)
committerEric Wong <e@80x24.org>
Sat, 31 Jul 2021 00:14:14 +0000 (00:14 +0000)
No callers pass an unblessed pathname to index_inbox,
only Inbox object refs.

lib/PublicInbox/Admin.pm

index eb38dd8fd384e73ab3de4425258e065a2e1e4873..d5f867a2f6a45136424655ac21d71eac0e69524d 100644 (file)
@@ -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;