]> Sergey Matveev's repositories - public-inbox.git/commitdiff
qspawn: drop {psgi_env} deref
authorEric Wong <e@80x24.org>
Tue, 17 Jan 2023 07:19:02 +0000 (07:19 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Jan 2023 23:25:47 +0000 (23:25 +0000)
We don't use the assigned variable anywhere, and just access
PATH_INFO directly in the subsequent warning message.

lib/PublicInbox/Qspawn.pm

index 0044c1f6b818683497120574f917cac8b642de77..779b703a0f270cf81196279c7f616a6b7c7283ac 100644 (file)
@@ -212,7 +212,6 @@ sub rd_hdr ($) {
                                $ret = [ 500, [], [ "Internal error\n" ] ];
                        } elsif (!defined($ret) && !$r) {
                                my $cmd = $self->{cmd} // [ '(?)' ];
-                               my $env = $self->{psgi_env};
                                warn <<EOM;
 EOF parsing headers from @$cmd ($self->{psgi_env}->{REQUEST_URI})
 EOM