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
169c6359
Commit
169c6359
authored
Sep 05, 2012
by
Andy Yates
Browse files
Foreach better than while .. i think
parent
1b043f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
+1
-1
No files found.
modules/Bio/EnsEMBL/DBSQL/DBAdaptor.pm
View file @
169c6359
...
...
@@ -178,7 +178,7 @@ sub clear_caches {
my
(
$self
)
=
@_
;
my
$adaptors
=
Bio::EnsEMBL::
Registry
->
get_all_adaptors
(
$self
->
species
(),
$self
->
group
());
while
(
my
$adaptor
=
shift
@
{
$adaptors
})
{
foreach
my
$adaptor
(
@
{
$adaptors
})
{
if
(
$adaptor
->
can
('
clear_cache
'))
{
$adaptor
->
clear_cache
();
}
...
...
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