diff --git a/stream/src/main/scala/org/apache/pekko/stream/impl/fusing/Ops.scala b/stream/src/main/scala/org/apache/pekko/stream/impl/fusing/Ops.scala index 9d1ce1a0b2..d70b1c9bbb 100644 --- a/stream/src/main/scala/org/apache/pekko/stream/impl/fusing/Ops.scala +++ b/stream/src/main/scala/org/apache/pekko/stream/impl/fusing/Ops.scala @@ -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) }