diff options
author | Eric Wong <e@80x24.org> | 2021-09-27 02:53:07 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-27 09:22:49 +0000 |
commit | 996de3c67d490b4052bd16179b229b30c2f890f8 (patch) | |
tree | d9f58dbdd5b5889640ddc7d2a6b7cf39acff8c90 /lib/PublicInbox/LeiUp.pm | |
parent | 751df49e7db8ba770dff28fb701b31c57ca200e2 (diff) | |
download | public-inbox-996de3c67d490b4052bd16179b229b30c2f890f8.tar.gz |
Instead of passing the prefix section and key separately, pass them together as is commonly done with git-config(1) usage as well as our ->get_all API. This inconsistency in the get_1 API is a needless footgun and confused me a bit while working on "lei up" the other week.
Diffstat (limited to 'lib/PublicInbox/LeiUp.pm')
-rw-r--r-- | lib/PublicInbox/LeiUp.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 377a720e..3e1ca21e 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -32,7 +32,7 @@ sub up1 ($$) { $lei->{opt}->{$k} //= $v; } for my $k ($lss->BOOL_FIELDS, $lss->SINGLE_FIELDS) { - my $v = $lss->{-cfg}->get_1('lei.q', $k) // next; + my $v = $lss->{-cfg}->get_1("lei.q.$k") // next; $lei->{opt}->{$k} //= $v; } my $o = $lei->{opt}->{output} // ''; |