Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
608a2511
Commit
608a2511
authored
Jun 12, 2012
by
Andy Yates
Browse files
Missed this quite important change to avoid the closing of files when they can't be
parent
28a87e15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/Bio/EnsEMBL/Pipeline/Base.pm
modules/Bio/EnsEMBL/Pipeline/Base.pm
+2
-2
No files found.
modules/Bio/EnsEMBL/Pipeline/Base.pm
View file @
608a2511
...
...
@@ -134,11 +134,11 @@ sub production_name {
sub
tidy_file_handle
{
my
(
$self
,
$fh
,
$path
)
=
@_
;
if
(
$fh
->
tell
()
==
0
)
{
$fh
->
close
;
$fh
->
close
()
unless
$fh
->
opened
()
;
unlink
(
$path
);
return
1
;
}
close
(
$fh
);
$fh
->
close
(
)
unless
$fh
->
opened
(
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment