Skip to content

Commit

Permalink
refactor(SendStream): remove duplicate buf.is_empty check (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Apr 15, 2024
1 parent cf00098 commit ca1466d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neqo-transport/src/send_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ impl SendStream {
return Err(Error::FinalSizeError);
}

let buf = if buf.is_empty() || (self.avail() == 0) {
let buf = if self.avail() == 0 {
return Ok(0);
} else if self.avail() < buf.len() {
if atomic {
Expand Down

0 comments on commit ca1466d

Please sign in to comment.