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 committed Dec 17, 2024
1 parent 51606c6 commit 33147b9
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 33147b9

Please sign in to comment.