Skip to content

Commit

Permalink
refactor(udp): remove unnecessary return
Browse files Browse the repository at this point in the history
No need to `return Ok(())` early, given the final `return Ok(())` at the end of
the function. Makes it consistent with other `send` implementations. Makes it
consistent with early returns being errors only.
  • Loading branch information
mxinden authored and djc committed Dec 17, 2024
1 parent 51606c6 commit cb0b59d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions quinn-udp/src/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ fn send(
if e.raw_os_error() != Some(libc::EMSGSIZE) {
return Err(e);
}

return Ok(());
}
}
}
Expand Down

0 comments on commit cb0b59d

Please sign in to comment.