Patch the JSON header formater

This commit is contained in:
coissac committed 2023-01-31 17:15:10 +01:00
1 parent 9f98075510
commit 57c7187e6d
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ func ParseFastSeqJsonHeader(sequence *obiseq.BioSequence) {
func FormatFastSeqJsonHeader(sequence *obiseq.BioSequence) string {
annotations := sequence.Annotations()
if annotations != nil {
if annotations != nil && len(annotations) > 0 {
text, err := goutils.JsonMarshal(sequence.Annotations())
if err != nil {