about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiSavedSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-18 08:31:39 +0000
committerEric Wong <e@80x24.org>2021-04-18 19:04:41 -0400
commit3b7b5442c4321ae802867cbda9bd33235ab2a5a3 (patch)
treebdea14e6eb4a23fc708618e8820087dfdb0764dd /lib/PublicInbox/LeiSavedSearch.pm
parent7060701075dcb467ed1328f048b96dc0bd446fbb (diff)
downloadpublic-inbox-3b7b5442c4321ae802867cbda9bd33235ab2a5a3.tar.gz
We'll keep it in PublicInbox::Config for now, since I'm not
sure if there's a better place to put it.
Diffstat (limited to 'lib/PublicInbox/LeiSavedSearch.pm')
-rw-r--r--lib/PublicInbox/LeiSavedSearch.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm
index f40fe76b..3076d14c 100644
--- a/lib/PublicInbox/LeiSavedSearch.pm
+++ b/lib/PublicInbox/LeiSavedSearch.pm
@@ -13,8 +13,6 @@ use PublicInbox::Spawn qw(run_die);
 use PublicInbox::ContentHash qw(git_sha);
 use Digest::SHA qw(sha256_hex);
 
-*squote_maybe = \&PublicInbox::Config::squote_maybe;
-
 # move this to PublicInbox::Config if other things use it:
 my %cquote = ("\n" => '\\n', "\t" => '\\t', "\b" => '\\b');
 sub cquote_val ($) { # cf. git-config(1)
@@ -61,7 +59,7 @@ sub new {
                 $self->{-cfg} = {};
                 my $f = $self->{'-f'} = "$dir/lei.saved-search";
                 open my $fh, '>', $f or return $lei->fail("open $f: $!");
-                my $sq_dst = squote_maybe($dst);
+                my $sq_dst = PublicInbox::Config::squote_maybe($dst);
                 my $q = $lei->{mset_opt}->{q_raw} // die 'BUG: {q_raw} missing';
                 if (ref $q) {
                         $q = join("\n", map { "\tq = ".cquote_val($_) } @$q);