Skip to content

Commit 7c337f7

Browse files
committed
src: improve code formatting of node_crypto.cc
Removed extraneous braces and superfluous scope comments.
1 parent 6743db2 commit 7c337f7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/node_crypto.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,8 @@ static X509_STORE* NewRootCertStore() {
10041004
X509_STORE_set_default_paths(store);
10051005
} else {
10061006
Mutex::ScopedLock lock(root_certs_vector_mutex);
1007-
for (X509* cert : root_certs_vector) {
1007+
for (X509* cert : root_certs_vector)
10081008
X509_STORE_add_cert(store, cert);
1009-
}
10101009
}
10111010

10121011
return store;
@@ -1085,7 +1084,6 @@ static unsigned long AddRootCertsFromFile( // NOLINT(runtime/int)
10851084
if (!bio)
10861085
return ERR_get_error();
10871086

1088-
// Scope for root_certs_vector lock
10891087
{
10901088
Mutex::ScopedLock lock(root_certs_vector_mutex);
10911089
while (X509* x509 =
@@ -6643,7 +6641,6 @@ void GetRootCertificates(const FunctionCallbackInfo<Value>& args) {
66436641

66446642
std::vector<Local<Value>> result;
66456643

6646-
// Scope for root_certs_vector lock
66476644
{
66486645
Mutex::ScopedLock lock(root_certs_vector_mutex);
66496646

0 commit comments

Comments
 (0)