Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Oct 29, 2024
1 parent 72e6906 commit d9c3984
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ extension HTTP2ClientTransport.Posix {
}
}

return HTTP2Connection(channel: channel, multiplexer: multiplexer, isPlaintext: self.isPlainText)
return HTTP2Connection(
channel: channel,
multiplexer: multiplexer,
isPlaintext: self.isPlainText
)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ extension NWProtocolTLS.Options {
throw RuntimeError(
code: .transportError,
message: """
There was an issue creating the SecIdentity required to set up TLS. \
Please check your TLS configuration.
"""
There was an issue creating the SecIdentity required to set up TLS. \
Please check your TLS configuration.
"""
)
}

Expand Down Expand Up @@ -390,7 +390,8 @@ extension NWProtocolTLS.Options {
fatalError("Certificate format must be DER, but was \(format).")
}

guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData) else {
guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData)
else {
fatalError("Certificate was not a valid DER-encoded X509 certificate.")
}
return certificate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ extension NWProtocolTLS.Options {
fatalError("Certificate format must be DER, but was \(format).")
}

guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData) else {
guard let certificate = SecCertificateCreateWithData(nil, certificateBytes as CFData)
else {
fatalError("Certificate was not a valid DER-encoded X509 certificate.")
}
return certificate
Expand Down

0 comments on commit d9c3984

Please sign in to comment.