]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-convert
inbox: add ->version method
[public-inbox.git] / script / public-inbox-convert
index 633c4cf8d9906e9b760e5feba1a24b0d9d66be49..56a810eb054ffc1ea41585eab1052dabb0b7bc12 100755 (executable)
@@ -41,7 +41,7 @@ unless ($old) {
        $old = PublicInbox::Inbox->new($old);
 }
 $old = PublicInbox::InboxWritable->new($old);
-if (($old->{version} || 1) >= 2) {
+if ($old->version >= 2) {
        die "Only conversion from v1 inboxes is supported\n";
 }
 my $new = { %$old };