Skip to content

Commit

Permalink
table 7,8... which have been removed was not discarded because it doe…
Browse files Browse the repository at this point in the history
…s not return empty value but simple quotes
  • Loading branch information
Juke34 committed Feb 16, 2024
1 parent 50a4823 commit 33e0de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Bio/Tools/CodonTable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ sub new {
sub id{
my ($self,$value) = @_;
if( defined $value) {
if ( not defined $TABLES[$value] or $TABLES[$value] eq '') {
if ( not defined $TABLES[$value] or $TABLES[$value] eq '' or $TABLES[$value] eq "''") {
$self->warn("Not a valid codon table ID [$value], using [1] instead ");
$value = 1;
}
Expand Down

0 comments on commit 33e0de3

Please sign in to comment.