Skip to content

Commit 3682ffc

Browse files
committed
fixup! pacify formatter
1 parent 6e34c6d commit 3682ffc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/crypto/crypto_common.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ void LogSecret(
8787
}
8888

8989
bool SetALPN(const SSLPointer& ssl, std::string_view alpn) {
90-
return SSL_set_alpn_protos(
91-
ssl.get(),
92-
reinterpret_cast<const uint8_t*>(alpn.data()),
93-
alpn.length()) == 0;
90+
return SSL_set_alpn_protos(ssl.get(),
91+
reinterpret_cast<const uint8_t*>(alpn.data()),
92+
alpn.length()) == 0;
9493
}
9594

9695
MaybeLocal<Value> GetSSLOCSPResponse(

src/crypto/crypto_tls.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ void TLSWrap::SetALPNProtocols(const FunctionCallbackInfo<Value>& args) {
15311531

15321532
if (w->is_client()) {
15331533
ArrayBufferViewContents<char> protos(args[0].As<ArrayBufferView>());
1534-
CHECK(SetALPN(w->ssl_, { protos.data(), protos.length() }));
1534+
CHECK(SetALPN(w->ssl_, {protos.data(), protos.length()}));
15351535
} else {
15361536
CHECK(
15371537
w->object()->SetPrivate(

0 commit comments

Comments
 (0)