Skip to content

Commit 535a440

Browse files
committed
fix: formatting
1 parent f4c581b commit 535a440

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/api.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,9 @@ fn pem_certs_from_bundle(pem: &[u8]) -> PbResult<Vec<Certificate>> {
140140
} else if line.contains("END CERTIFICATE") {
141141
current.push_str(line);
142142
current.push('\n');
143-
certs.push(
144-
Certificate::from_pem(current.as_bytes()).map_err(|e| {
145-
PbError::InvalidCertificate(format!("invalid certificate in bundle: {}", e))
146-
})?,
147-
);
143+
certs.push(Certificate::from_pem(current.as_bytes()).map_err(|e| {
144+
PbError::InvalidCertificate(format!("invalid certificate in bundle: {}", e))
145+
})?);
148146
in_cert = false;
149147
} else if in_cert {
150148
current.push_str(line);

0 commit comments

Comments
 (0)