Merge pull request #57 from metabarcoding/push-ywktmvpvtvmv

debug taxonomy core dump
This commit is contained in:
coissac
2025-11-05 19:07:41 +01:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import (
// corresponds to the last commit, and not the one when the file will be
// commited
var _Commit = "7f4ebe7"
var _Commit = "7500ee1"
var _Version = "Release 4.4.0"
// Version returns the version of the obitools package.

View File

@@ -145,7 +145,6 @@ func (taxonomy *Taxonomy) Taxon(taxid string) (*Taxon, bool, error) {
}
taxon := taxonomy.nodes.Get(id)
isAlias := taxon.Node.id != id
if taxon == nil {
return nil,
@@ -155,6 +154,8 @@ func (taxonomy *Taxonomy) Taxon(taxid string) (*Taxon, bool, error) {
taxonomy.name)
}
isAlias := taxon.Node.id != id
return taxon, isAlias, nil
}