about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiExternal.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-02-22 08:22:52 -0300
committerEric Wong <e@80x24.org>2021-02-22 18:14:18 -0400
commit16396c1c2f4968d465ef99a68b3d76d7c1f32628 (patch)
treea1affbb2bd1743947f4f353f52d41534661b6e14 /lib/PublicInbox/LeiExternal.pm
parent2fc7ac8bf713d10a77ed65ca9fa8836675d3a57f (diff)
downloadpublic-inbox-16396c1c2f4968d465ef99a68b3d76d7c1f32628.tar.gz
Existing callers in LeiExternal actually depend on this,
and LeiAuth shouldn't need to be creating a config file
just to do a conversion against an anonymous IMAP server.
Diffstat (limited to 'lib/PublicInbox/LeiExternal.pm')
-rw-r--r--lib/PublicInbox/LeiExternal.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm
index 6cc2e671..0cc84cca 100644
--- a/lib/PublicInbox/LeiExternal.pm
+++ b/lib/PublicInbox/LeiExternal.pm
@@ -9,7 +9,7 @@ use PublicInbox::Config;
 
 sub externals_each {
         my ($self, $cb, @arg) = @_;
-        my $cfg = $self->_lei_cfg(0);
+        my $cfg = $self->_lei_cfg;
         my %boost;
         for my $sec (grep(/\Aexternal\./, @{$cfg->{-section_order}})) {
                 my $loc = substr($sec, length('external.'));
@@ -234,7 +234,7 @@ sub _complete_url_common ($) {
 # shell completion helper called by lei__complete
 sub _complete_forget_external {
         my ($self, @argv) = @_;
-        my $cfg = $self->_lei_cfg(0);
+        my $cfg = $self->_lei_cfg;
         my ($cur, $re) = _complete_url_common(\@argv);
         # FIXME: bash completion off "http:" or "https:" when the last
         # character is a colon doesn't work properly even if we're
@@ -250,7 +250,7 @@ sub _complete_forget_external {
 
 sub _complete_add_external { # for bash, this relies on "compopt -o nospace"
         my ($self, @argv) = @_;
-        my $cfg = $self->_lei_cfg(0);
+        my $cfg = $self->_lei_cfg;
         my ($cur, $re) = _complete_url_common(\@argv);
         require URI;
         map {