patch bug in worker

Former-commit-id: f83cc62fc7a85f732e871f8866f80f738f494f9e
This commit is contained in:
2023-12-03 22:44:13 +01:00
parent d29f82a28d
commit eb351a7530
2 changed files with 10 additions and 8 deletions

View File

@ -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()
}