]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
cindex: drop redundant close on regular FH
authorEric Wong <e@80x24.org>
Thu, 2 Nov 2023 09:35:29 +0000 (09:35 +0000)
committerEric Wong <e@80x24.org>
Fri, 3 Nov 2023 06:39:27 +0000 (06:39 +0000)
commit19f9089343c9e579253db756f2131ee493718ead
treea6563fc535f8e8d8332e4a3e9ebe790328df97e1
parente85d3280129ce60a9587895a44df765a39447634
cindex: drop redundant close on regular FH

There's no need to waste optree space on close() statements for
file handles which are (effectively) read-only on their last use
and incapable of error checking in our Perl code (since they're
only read by git).

Let Perl refcounting take care of it so we have less code to
wade through when focusing on `close' statements which actually
matter.
lib/PublicInbox/CodeSearchIdx.pm