debug taxonomy core dump

This commit is contained in:
Eric Coissac
2025-11-05 18:59:05 +01:00
parent 7500ee1d15
commit 2d7dc7d09d
2 changed files with 3 additions and 2 deletions

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
}