Fix crash when ref tile is dropped due to duplicate tag.
[lightning.git] / tilelib.go
index df6cb73b3be2b9e16418f6d5eb7c5135b7686efe..b6dc3671207c619d6ffe578e5a292f69eab334af 100644 (file)
@@ -572,6 +572,8 @@ func (tilelib *tileLibrary) TileFasta(filelabel string, rdr io.Reader, matchChro
                                todo <- jobT{seqlabel, append([]byte(nil), fasta...)}
                                seqlabel, fasta = strings.SplitN(string(buf[1:]), " ", 2)[0], fasta[:0]
                                log.Debugf("%s %s reading fasta", filelabel, seqlabel)
+                       } else if len(buf) > 0 && buf[0] == '#' {
+                               // ignore testdata comment
                        } else {
                                fasta = append(fasta, bytes.ToLower(buf)...)
                        }