mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-11 01:44:41 +00:00
Simplify code of the JSON header formater
This commit is contained in:
1 parent
57c7187e6d
commit
e5835310cc
1 file changed
+1
-1
@@ -70,7 +70,7 @@ func ParseFastSeqJsonHeader(sequence *obiseq.BioSequence) {
|
||||
func FormatFastSeqJsonHeader(sequence *obiseq.BioSequence) string {
|
||||
annotations := sequence.Annotations()
|
||||
|
||||
if annotations != nil && len(annotations) > 0 {
|
||||
if len(annotations) > 0 {
|
||||
text, err := goutils.JsonMarshal(sequence.Annotations())
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user