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-hive
Commits
198ed272
Commit
198ed272
authored
Jan 21, 2011
by
Leo Gordon
Browse files
don't disrupt the descending of the structure by early returns
parent
34bb2acd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
+7
-5
No files found.
modules/Bio/EnsEMBL/Hive/PipeConfig/HiveGeneric_conf.pm
View file @
198ed272
...
...
@@ -487,19 +487,21 @@ sub _completely_defined_string {
sub
_completely_defined_structure
{
my
$structure
=
shift
@_
;
my
$completely_defined
=
1
;
if
(
ref
(
$structure
)
eq
'
HASH
')
{
while
(
my
(
$key
,
$value
)
=
each
%$structure
)
{
return
0
unless
(
_completely_defined_structure
(
$value
)
)
;
$completely_defined
&&=
_completely_defined_structure
(
$value
);
}
return
1
;
return
$completely_defined
;
}
elsif
(
ref
(
$structure
)
eq
'
ARRAY
')
{
foreach
my
$element
(
@$structure
)
{
return
0
unless
(
_completely_defined_structure
(
$element
)
)
;
$completely_defined
&&=
_completely_defined_structure
(
$element
);
}
return
1
;
}
else
{
return
_completely_defined_string
(
$structure
);
$completely_defined
=
_completely_defined_string
(
$structure
);
}
return
$completely_defined
;
}
...
...
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