Skip to content

Commit

Permalink
is_none
Browse files Browse the repository at this point in the history
  • Loading branch information
jupyterkat committed Jan 11, 2024
1 parent 81be7ce commit 613ace3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,8 @@ impl<R: Read> Reader<R> {
let mut buf = Vec::new();
let state = self.decoder.decode_next(&mut buf)?;

match state {
None => break,
_ => {}
if state.is_none() {
break;
}
}

Expand Down

0 comments on commit 613ace3

Please sign in to comment.