Skip to content

Commit

Permalink
Avoid messages of uninitialized value in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-agostinho committed Feb 14, 2024
1 parent eab210a commit 50c3ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/BaseVEP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ sub registry {
my @db_names = map { $_->dbc->dbname } @{ $reg->get_all_DBAdaptors };
my $hostname = ($user eq 'anonymous' ? '' : $user . '@') . "$host:$port";
$self->warning_msg("No database names in $hostname contain version $db_version")
unless grep { /$db_version/ } @db_names;
if defined $db_version and not grep { /$db_version/ } @db_names;
}

eval { $reg->set_reconnect_when_lost() };
Expand Down

0 comments on commit 50c3ce5

Please sign in to comment.