Skip to content

Commit

Permalink
Satisfy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Nov 20, 2024
1 parent 28e1f73 commit cc69f0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tls13formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,8 @@ pub(crate) fn server_hello(
let ks = server_key_shares(algs, gy.clone())?;
let sv = server_supported_version(algs)?;
let mut exts = ks.concat(sv);
match algs.psk_mode() {
true => exts = exts.concat(server_pre_shared_key(algs)?),
false => {}
if algs.psk_mode() {
exts = exts.concat(server_pre_shared_key(algs)?);
}
let encoded_extensions = encode_length_u16(exts)?;
let sh = HandshakeData::from_bytes(
Expand Down

0 comments on commit cc69f0b

Please sign in to comment.