Skip to content

Commit 749b1c9

Browse files
committed
Silence the warnings I accidentally added
1 parent aaafa59 commit 749b1c9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/X509/Extension Types/BasicConstraints.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct BasicConstraintsValue: DERImplicitlyTaggable {
111111

112112
// CA's must not assert the path len constraint field unless isCA is true.
113113
guard pathLenConstraint == nil || isCA else {
114-
throw ASN1Error.invalidASN1Object(reason: "Invalid combination of isCA (\(isCA)) and path length constraint (\(pathLenConstraint)")
114+
throw ASN1Error.invalidASN1Object(reason: "Invalid combination of isCA (\(isCA)) and path length constraint (\(String(describing: pathLenConstraint))")
115115
}
116116
}
117117

Sources/X509/OCSP/OCSPResponse.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ enum OCSPResponse: DERImplicitlyTaggable, Hashable {
4646
guard let responseBytes,
4747
responseBytes.responseType == .OCSP.basicResponse
4848
else {
49-
throw ASN1Error.invalidASN1Object(reason: "Successful response does not have appropriate response bytes: \(responseBytes)")
49+
throw ASN1Error.invalidASN1Object(reason: "Successful response does not have appropriate response bytes: \(String(describing: responseBytes))")
5050
}
5151
return .successful(try BasicOCSPResponse(derEncoded: responseBytes.response.bytes))
5252
case .malformedRequest:

0 commit comments

Comments
 (0)