mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
patch bug in worker
Former-commit-id: f83cc62fc7a85f732e871f8866f80f738f494f9e
This commit is contained in:
@ -140,11 +140,7 @@ func (iterator IBioSequence) MakeISliceWorker(worker obiseq.SeqSliceWorker, size
|
||||
for iterator.Next() {
|
||||
batch := iterator.Get()
|
||||
batch.slice = worker(batch.slice)
|
||||
if batch.slice.Len() > 0 {
|
||||
newIter.Push(batch)
|
||||
} else {
|
||||
batch.Recycle(false)
|
||||
}
|
||||
newIter.Push(batch)
|
||||
}
|
||||
newIter.Done()
|
||||
}
|
||||
|
Reference in New Issue
Block a user