From 0427354a9829ccb87572517fd099101dd1a8bf2d Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Wed, 20 Mar 2019 22:54:11 +0800 Subject: [PATCH] src: delete useless code in cares_wrap.cc PR-URL: https://github.com/nodejs/node/pull/26815 Reviewed-By: Refael Ackermann --- src/cares_wrap.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 683d9c9728b7e8..aeb525b33e7efa 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -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;