From f9972b20c67d957a41ae184e43c148c5e095e396 Mon Sep 17 00:00:00 2001 From: "kernel.bin" <1160386205@qq.com> Date: Sat, 14 Sep 2024 16:48:51 +0800 Subject: [PATCH] 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. --- src/cares_wrap.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 436b2e3e002d81..698d34f4d00434 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -1956,16 +1956,6 @@ void Initialize(Local 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 aiw = BaseObject::MakeLazilyInitializedJSTemplate(env);