From db47ea523760f7ceef3d38c0008e082e9e7d1c02 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 2 Nov 2023 09:35:28 +0000 Subject: treewide: use ->close method rather than CORE::close It's easier-to-read and should open the door for us to get rid of `tie' for ProcessIO without performance penalties for more frequently-used perlop calls and ability to do `stat' directly on the object instead of the awkward `tied' thing. --- lib/PublicInbox/LeiMirror.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiMirror.pm') diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm index 0f378768..71f41a11 100644 --- a/lib/PublicInbox/LeiMirror.pm +++ b/lib/PublicInbox/LeiMirror.pm @@ -334,7 +334,7 @@ sub fgrp_update { upr($lei, $w, 'create', $ref, $oid); } } - CORE::close($w) or upref_warn(); + $w->close or upref_warn(); } sub satellite_done { @@ -344,7 +344,7 @@ sub satellite_done { while (my ($ref, $oid) = each %$create) { upr($fgrp->{lei}, $w, 'create', $ref, $oid); } - CORE::close($w) or upref_warn(); + $w->close or upref_warn(); } else { pack_refs($fgrp, $fgrp->{cur_dst}); run_puh($fgrp); -- cgit v1.2.3-24-ge0c7