Skip to content

Commit

Permalink
dns: improved assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ShogunPanda committed Apr 17, 2024
1 parent e9ed7bb commit e30dfcc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1600,11 +1600,7 @@ void GetAddrInfo(const FunctionCallbackInfo<Value>& args) {
UNREACHABLE("bad address family");
}

Local<Uint32> order;
if (!args[4]->ToUint32(env->context()).ToLocal(&order)) {
THROW_ERR_INVALID_ARG_VALUE(env, "bad order");
return;
}
Local<Uint32> order = args[4].As<Uint32>();

auto req_wrap = std::make_unique<GetAddrInfoReqWrap>(env,
req_wrap_obj,
Expand Down

0 comments on commit e30dfcc

Please sign in to comment.