Skip to content

Commit b64c582

Browse files
committed
return error instead of unwrap
Signed-off-by: Rajat Jindal <[email protected]>
1 parent 857e39a commit b64c582

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/trigger-http/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,7 @@ fn get_client_tls_config_for_authority(
962962
) {
963963
(Some(cert_chain), Some(private_key)) => Ok(rustls::ClientConfig::builder()
964964
.with_root_certificates(root_cert_store)
965-
.with_client_auth_cert(cert_chain.to_owned(), private_key.clone_key())
966-
.unwrap()),
965+
.with_client_auth_cert(cert_chain.to_owned(), private_key.clone_key())?),
967966
_ => Ok(rustls::ClientConfig::builder()
968967
.with_root_certificates(root_cert_store)
969968
.with_no_client_auth()),

0 commit comments

Comments
 (0)