=str code clean up in Sliding.

This commit is contained in:
He-Pin 2023-12-23 14:32:14 +08:00 committed by kerr
parent 3a1d31e841
commit 80cd63faf5

View file

@ -903,7 +903,7 @@ private[stream] object Collect {
if (buf.size == n) {
push(out, buf)
} else pull(in)
} else if (step > n) {
} else {
if (buf.size == step) {
buf = buf.drop(step)
}