We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ed76f commit cd3dd00Copy full SHA for cd3dd00
quinn-proto/src/connection/mod.rs
@@ -1520,8 +1520,8 @@ impl Connection {
1520
/// by both peers.
1521
pub fn is_multipath_enabled(&self) -> bool {
1522
!self.is_handshaking()
1523
- && self.handshake_cid.len() > 0
1524
- && self.rem_handshake_cid.len() > 0
+ && !self.handshake_cid.is_empty()
+ && !self.rem_handshake_cid.is_empty()
1525
&& self.config.initial_max_path_id.is_some()
1526
&& self.peer_params.initial_max_path_id.is_some()
1527
}
0 commit comments