Skip to content

Commit

Permalink
Added die() statement to temp file unlink in _read_file()
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieb9 committed Nov 25, 2020
1 parent 88ab31a commit afc2231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Devel/Examine/Subs.pm
Expand Up @@ -786,7 +786,7 @@ sub _read_file {
$ppi_doc = PPI::Document->new($tempfile_name);

close $self->tempfile;
unlink $self->tempfile()->filename;
unlink $tempfile_name or die "Can't delete temp file $tempfile_name: $!";
}
else {
$ppi_doc = PPI::Document->new($file);
Expand Down

0 comments on commit afc2231

Please sign in to comment.