about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiRmWatch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-09-24 05:42:09 +0000
committerEric Wong <e@80x24.org>2023-09-24 18:56:05 +0000
commite3455d2f3b100a13cbf7cfe6b36619096a2c4e8a (patch)
tree7422e59993cf9dfe53565ca7a69818b2f9493bc5 /lib/PublicInbox/LeiRmWatch.pm
parent89ded2496df4b638aa35c93a1a48f572261d2a02 (diff)
downloadpublic-inbox-e3455d2f3b100a13cbf7cfe6b36619096a2c4e8a.tar.gz
2020-2021 were bad times and I somehow got deluded into
believing git-config(1) would always succeed :x
Diffstat (limited to 'lib/PublicInbox/LeiRmWatch.pm')
-rw-r--r--lib/PublicInbox/LeiRmWatch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiRmWatch.pm b/lib/PublicInbox/LeiRmWatch.pm
index c0f336f0..19bee3ab 100644
--- a/lib/PublicInbox/LeiRmWatch.pm
+++ b/lib/PublicInbox/LeiRmWatch.pm
@@ -14,7 +14,7 @@ sub lei_rm_watch {
         my $self = bless { missing_ok => 1 }, __PACKAGE__;
         $self->prepare_inputs($lei, \@argv) or return;
         for my $w (@{$self->{inputs}}) {
-                $lei->_config('--remove-section', "watch.$w");
+                $lei->_config('--remove-section', "watch.$w") or return;
         }
         delete $lei->{cfg}; # force reload
         $lei->refresh_watches;