small refactoring including doc

Former-commit-id: 6d6b527d89d77aa571831f7500f841840e280536
This commit is contained in:
2023-08-27 15:52:28 +02:00
parent f1025f97b8
commit 7b7128196a
4 changed files with 17 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ func AnnotationClassifier(key string, na string) *BioSequenceClassifier {
locke.RLock()
defer locke.RUnlock()
if k >= maxcode {
log.Fatalf("value %d not register")
log.Fatalf("value %d not register", k)
}
return decode[k]
}
@@ -154,7 +154,7 @@ func DualAnnotationClassifier(key1, key2 string, na string) *BioSequenceClassifi
locke.RLock()
defer locke.RUnlock()
if k >= maxcode {
log.Fatalf("value %d not register")
log.Fatalf("value %d not register", k)
}
return decode[k]
}