Skip to content

Commit

Permalink
fixup! pacify formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Jul 10, 2022
1 parent 6e34c6d commit 3682ffc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/crypto/crypto_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ void LogSecret(
}

bool SetALPN(const SSLPointer& ssl, std::string_view alpn) {
return SSL_set_alpn_protos(
ssl.get(),
reinterpret_cast<const uint8_t*>(alpn.data()),
alpn.length()) == 0;
return SSL_set_alpn_protos(ssl.get(),
reinterpret_cast<const uint8_t*>(alpn.data()),
alpn.length()) == 0;
}

MaybeLocal<Value> GetSSLOCSPResponse(
Expand Down
2 changes: 1 addition & 1 deletion src/crypto/crypto_tls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,7 @@ void TLSWrap::SetALPNProtocols(const FunctionCallbackInfo<Value>& args) {

if (w->is_client()) {
ArrayBufferViewContents<char> protos(args[0].As<ArrayBufferView>());
CHECK(SetALPN(w->ssl_, { protos.data(), protos.length() }));
CHECK(SetALPN(w->ssl_, {protos.data(), protos.length()}));
} else {
CHECK(
w->object()->SetPrivate(
Expand Down

0 comments on commit 3682ffc

Please sign in to comment.