From a3e3a5f5f34f258744938e60639c0b4d7a362f60 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 25 Mar 2021 06:20:20 +0200 Subject: lei add-external: do not initialize writable store There's no need to create or write lei/store when adding an external, we just need to write to the config file. --- lib/PublicInbox/LeiExternal.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm index 56d6ef39..5e8dc71a 100644 --- a/lib/PublicInbox/LeiExternal.pm +++ b/lib/PublicInbox/LeiExternal.pm @@ -144,8 +144,6 @@ sub add_external_finish { sub lei_add_external { my ($self, $location) = @_; - my $sto = $self->_lei_store(1); - $sto->write_prepare($self); my $opt = $self->{opt}; my $mirror = $opt->{mirror} // do { my @fail; -- cgit v1.2.3-24-ge0c7