Skip to content
Snippets Groups Projects
Commit ec779dc8 authored by Kieron Taylor's avatar Kieron Taylor :angry:
Browse files

Purge some return undef;

parent 67e43acd
No related branches found
No related tags found
No related merge requests found
......@@ -674,7 +674,7 @@ sub _uncached_fetch_by_dbID{
#Should only be one
my ($feat) = @{$self->generic_fetch($constraint)};
return undef if(!$feat);
return if(!$feat);
return $feat;
}
......@@ -1151,7 +1151,7 @@ sub _logic_name_to_constraint {
my $an = $aa->fetch_by_logic_name($logic_name);
if ( !defined($an) ) {
return undef;
return;
}
my $an_id = $an->dbID();
......
......@@ -322,7 +322,7 @@ sub fetch_by_region {
$syn_sql_sth->finish;
if ($no_fuzz) { return undef }
if ($no_fuzz) { return; }
# Do fuzzy matching, assuming that we are just missing a version
# on the end of the seq_region name.
......@@ -398,7 +398,7 @@ sub fetch_by_region {
$cs = $high_cs;
# return if we did not find any appropriate match:
if ( !defined($high_ver) ) { return undef }
if ( !defined($high_ver) ) { return; }
} else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment