Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël Zasso <[email protected]>
  • Loading branch information
jasnell and targos authored Dec 31, 2024
1 parent 35b1cac commit c4a9dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/crypto_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ void Hash::GetCachedAliases(const FunctionCallbackInfo<Value>& args) {
size_t size = env->alias_to_md_id_map.size();
LocalVector<Name> names(isolate);
LocalVector<Value> values(isolate);
#if OPENSSL_VERSION_MAJOR >= 3
names.reserve(size);
values.reserve(size);
#if OPENSSL_VERSION_MAJOR >= 3
for (auto& [alias, id] : env->alias_to_md_id_map) {
names.push_back(OneByteString(isolate, alias.c_str(), alias.size()));
values.push_back(v8::Uint32::New(isolate, id));
Expand Down

0 comments on commit c4a9dcb

Please sign in to comment.