Skip to content

Commit c4a9dcb

Browse files
jasnelltargos
andauthored
Apply suggestions from code review
Co-authored-by: Michaël Zasso <[email protected]>
1 parent 35b1cac commit c4a9dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_hash.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ void Hash::GetCachedAliases(const FunctionCallbackInfo<Value>& args) {
148148
size_t size = env->alias_to_md_id_map.size();
149149
LocalVector<Name> names(isolate);
150150
LocalVector<Value> values(isolate);
151+
#if OPENSSL_VERSION_MAJOR >= 3
151152
names.reserve(size);
152153
values.reserve(size);
153-
#if OPENSSL_VERSION_MAJOR >= 3
154154
for (auto& [alias, id] : env->alias_to_md_id_map) {
155155
names.push_back(OneByteString(isolate, alias.c_str(), alias.size()));
156156
values.push_back(v8::Uint32::New(isolate, id));

0 commit comments

Comments
 (0)