Skip to content

Commit 7214718

Browse files
chore: Improve code style
1 parent a94f08b commit 7214718

File tree

1 file changed

+2
-4
lines changed
  • rust/operator-binary/src/backend/tls

1 file changed

+2
-4
lines changed

rust/operator-binary/src/backend/tls/ca.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ impl Manager {
562562
) -> Result<Vec<X509>> {
563563
let extension = Path::new(key).extension().and_then(OsStr::to_str);
564564

565-
let certs = match extension {
565+
match extension {
566566
Some("crt") => X509::stack_from_pem(value),
567567
Some("der") => X509::from_der(value).map(|cert| vec![cert]),
568568
_ => {
@@ -576,9 +576,7 @@ impl Manager {
576576
.context(LoadCertificateSnafu {
577577
key,
578578
object: object_ref,
579-
})?;
580-
581-
Ok(certs)
579+
})
582580
}
583581

584582
/// Get an appropriate [`CertificateAuthority`] for signing a given certificate.

0 commit comments

Comments
 (0)