]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei q --save: avoid lei.q.format
authorEric Wong <e@80x24.org>
Fri, 16 Apr 2021 23:10:34 +0000 (16:10 -0700)
committerEric Wong <e@80x24.org>
Sat, 17 Apr 2021 10:00:45 +0000 (10:00 +0000)
It is redundant since we stuff everything into the lei.q.output
config key.

lib/PublicInbox/LeiSavedSearch.pm
lib/PublicInbox/LeiUp.pm

index 93b1b23aa3d7110fb5e90eab47df2658f2abdc37..a8bf470be4738db3733ed0f39bbe196c32c0d92d 100644 (file)
@@ -51,8 +51,6 @@ sub new {
                } else {
                        cfg_set($self, 'lei.q', $q);
                }
-               my $fmt = $lei->{opt}->{'format'};
-               cfg_set($self, 'lei.q.format', $fmt) if defined $fmt;
                $dst = "$lei->{ovv}->{fmt}:$dst" if $dst !~ m!\Aimaps?://!i;
                cfg_set($self, 'lei.q.output', $dst);
                for my $k (qw(only include exclude)) {
index 7ddb1dd0664a4aef36c5fc31fee234841fad6912..9fe4901bc6127a44bffe73a0fdc063aa38587e2b 100644 (file)
@@ -24,7 +24,6 @@ sub lei_up {
        }
        $lei->{opt}->{output} = $lss->{-cfg}->{'lei.q.output'} //
                return $lei->fail("lei.q.output unset in $lss->{-f}");
-       $lei->{opt}->{'format'} //= $lss->{-cfg}->{'lei.q.format'}; # optional
 
        my $to_avref = $lss->{-cfg}->can('_array');
        for my $k (qw(only include exclude)) {