Skip to content

Commit

Permalink
proto: Remove superfluous else in handle
Browse files Browse the repository at this point in the history
The body of the if statement always returns from the function, so the
`else if` can simply be another `if`.
  • Loading branch information
gretchenfrage committed Dec 22, 2024
1 parent 3cb88a0 commit c8af832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quinn-proto/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ impl Endpoint {
None
}
};
} else if first_decode.has_long_header() {
}

if first_decode.has_long_header() {
debug!(
"ignoring non-initial packet for unknown connection {}",
dst_cid
Expand Down

0 comments on commit c8af832

Please sign in to comment.