We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4c581b commit 535a440Copy full SHA for 535a440
1 file changed
src/api.rs
@@ -140,11 +140,9 @@ fn pem_certs_from_bundle(pem: &[u8]) -> PbResult<Vec<Certificate>> {
140
} else if line.contains("END CERTIFICATE") {
141
current.push_str(line);
142
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
- );
+ certs.push(Certificate::from_pem(current.as_bytes()).map_err(|e| {
+ PbError::InvalidCertificate(format!("invalid certificate in bundle: {}", e))
+ })?);
148
in_cert = false;
149
} else if in_cert {
150
0 commit comments