]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/InboxWritable.pm
index: support --compact / -c on command-line
[public-inbox.git] / lib / PublicInbox / InboxWritable.pm
index e684f5464167d2d25bf15b2dae0998d1d95fe2f7..ce979ea2bf8c65fe2f5f72ce16ef5d58515b5762 100644 (file)
@@ -19,6 +19,7 @@ use constant {
 
 sub new {
        my ($class, $ibx, $creat_opt) = @_;
+       return $ibx if ref($ibx) eq $class;
        my $self = bless $ibx, $class;
 
        # TODO: maybe stop supporting this