src: delete useless code in cares_wrap.cc
PR-URL: https://github.com/nodejs/node/pull/26815 Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
parent
78ae094ed0
commit
230f1f2aa4
@ -296,11 +296,6 @@ void node_ares_task::MemoryInfo(MemoryTracker* tracker) const {
|
||||
node_ares_task* ares_task_create(ChannelWrap* channel, ares_socket_t sock) {
|
||||
auto task = new node_ares_task();
|
||||
|
||||
if (task == nullptr) {
|
||||
/* Out of memory. */
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
task->channel = channel;
|
||||
task->sock = sock;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user