mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Adds a test for not pushing empty batch on the output
This commit is contained in:
@@ -598,7 +598,9 @@ func (iterator IBioSequenceBatch) FilterOn(predicate obiseq.SequencePredicate,
|
||||
}
|
||||
|
||||
seqs.slice = slice[:j]
|
||||
trueIter.Push(seqs)
|
||||
if seqs.Length() > 0 {
|
||||
trueIter.Push(seqs)
|
||||
}
|
||||
}
|
||||
|
||||
trueIter.Done()
|
||||
|
||||
Reference in New Issue
Block a user