Refactoring of some code

This commit is contained in:
2022-08-23 11:07:39 +02:00
parent 62968aaa26
commit abaede48b5
4 changed files with 71 additions and 36 deletions

View File

@ -2,7 +2,6 @@ package obitax
import (
"fmt"
log "github.com/sirupsen/logrus"
)
type TaxName struct {
@ -63,7 +62,6 @@ func (taxonomy *Taxonomy) Taxon(taxid int) (*TaxNode, error) {
if !aok {
return nil, fmt.Errorf("Taxid %d is not part of the taxonomy", taxid)
}
log.Printf("Taxid %d is deprecated and must be replaced by %d", taxid, a.taxid)
t = a
}
return t, nil