Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
src: remove duplicate code setting AF_INET
`AF_INET` has been repeatedly set three times in the code. this should
be redundant. removed the last two times.
  • Loading branch information
kernelbin committed Sep 14, 2024
commit f9972b20c67d957a41ae184e43c148c5e095e396
10 changes: 0 additions & 10 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1956,16 +1956,6 @@ void Initialize(Local<Object> target,
FIXED_ONE_BYTE_STRING(env->isolate(), "DNS_ORDER_IPV6_FIRST"),
Integer::New(env->isolate(), DNS_ORDER_IPV6_FIRST))
.Check();
target
->Set(env->context(),
FIXED_ONE_BYTE_STRING(env->isolate(), "AF_INET"),
Integer::New(env->isolate(), AF_INET))
.Check();
target
->Set(env->context(),
FIXED_ONE_BYTE_STRING(env->isolate(), "AF_INET"),
Integer::New(env->isolate(), AF_INET))
.Check();

Local<FunctionTemplate> aiw =
BaseObject::MakeLazilyInitializedJSTemplate(env);
Expand Down