mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 00:30:27 +00:00
debug taxonomy core dump
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
|||||||
// corresponds to the last commit, and not the one when the file will be
|
// corresponds to the last commit, and not the one when the file will be
|
||||||
// commited
|
// commited
|
||||||
|
|
||||||
var _Commit = "7f4ebe7"
|
var _Commit = "7500ee1"
|
||||||
var _Version = "Release 4.4.0"
|
var _Version = "Release 4.4.0"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
|
|||||||
@@ -145,7 +145,6 @@ func (taxonomy *Taxonomy) Taxon(taxid string) (*Taxon, bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
taxon := taxonomy.nodes.Get(id)
|
taxon := taxonomy.nodes.Get(id)
|
||||||
isAlias := taxon.Node.id != id
|
|
||||||
|
|
||||||
if taxon == nil {
|
if taxon == nil {
|
||||||
return nil,
|
return nil,
|
||||||
@@ -155,6 +154,8 @@ func (taxonomy *Taxonomy) Taxon(taxid string) (*Taxon, bool, error) {
|
|||||||
taxonomy.name)
|
taxonomy.name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isAlias := taxon.Node.id != id
|
||||||
|
|
||||||
return taxon, isAlias, nil
|
return taxon, isAlias, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user