From 608b69091f8798dde2359b981571b43df3b81dce Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Wed, 21 Oct 2020 17:05:59 -0700 Subject: [PATCH] eliminate unnecessary eval; update AUTOLOAD --- lib/Perl/Tidy/LineSink.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Perl/Tidy/LineSink.pm b/lib/Perl/Tidy/LineSink.pm index 79d717fc..81ea092a 100644 --- a/lib/Perl/Tidy/LineSink.pm +++ b/lib/Perl/Tidy/LineSink.pm @@ -18,9 +18,11 @@ sub AUTOLOAD { our $AUTOLOAD; return if ( $AUTOLOAD =~ /\bDESTROY$/ ); my ( $pkg, $fname, $lno ) = caller(); + my $my_package = __PACKAGE__; print STDERR <{_output_file}; if ( $output_file ne '-' && !ref $output_file ) { - eval { $self->{_fh}->close() } if $self->{_output_file_open}; + $self->{_fh}->close() if $self->{_output_file_open}; } return; } -- 2.39.5