]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
lei_config: drop redundant open check
authorEric Wong <e@80x24.org>
Tue, 17 Oct 2023 23:38:13 +0000 (23:38 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Oct 2023 20:50:42 +0000 (20:50 +0000)
autodie already takes care of checking for open failures.

lib/PublicInbox/LeiConfig.pm

index c47708d82ab4fba0b2c1b6e6508e464643b31533..796bb4f5ea89b5f68a00be7fd905c63f0b1319ec 100644 (file)
@@ -22,7 +22,7 @@ sub cfg_do_edit ($;$) {
 
 sub cfg_edit_done { # PktOp lei->do_env cb
        my ($lei, $self) = @_;
-       open my $fh, '+>', undef or die "open($!)";
+       open my $fh, '+>', undef;
        my $cfg = do {
                local $lei->{2} = $fh;
                $lei->cfg_dump($self->{-f});