Bio::Tools::CodonTable::_codon_is: simplify with use all()
commitfa9366f3a2f48fd051343d488cfce26655f842b3
authorDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Fri, 26 Apr 2024 14:56:53 +0000 (26 15:56 +0100)
committerDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Fri, 26 Apr 2024 15:03:06 +0000 (26 16:03 +0100)
treec3252f2eebc421e1d2b6bca993308efa3a09c6c9
parent17f4c3b18b35447e93d1ff8349311c5aaff2b199
Bio::Tools::CodonTable::_codon_is: simplify with use all()

Using List::Util::all makes code clearer.  But we now return ''
instead of 0 for false.  Tests are adjusted to check for truthness has
documented.
lib/Bio/Tools/CodonTable.pm
t/SeqTools/CodonTable.t