Skip to content

Commit b39f875

Browse files
committed
zlib: drop the comment that stood in for the removed early return
Assisted-by: Claude Code:claude-opus-5-5
1 parent a70643b commit b39f875

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • crates/common/src/compression

‎crates/common/src/compression/zlib.rs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,6 @@ fn decompress_chunks(
350350
max_length: Option<usize>,
351351
calc_flush: impl Fn(bool) -> InflateFlush,
352352
) -> Result<(Vec<u8>, bool), String> {
353-
// Empty input still reaches inflate, like CPython: inflate can hold output
354-
// after it consumed the last input byte. A stream with no pending output
355-
// answers `BufError`, not `StreamEnd`, so `eof` stays false.
356353
let max_length = max_length.unwrap_or(usize::MAX);
357354
let mut buf = Vec::new();
358355

0 commit comments

Comments
 (0)