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:
gengjiawen 2019-03-20 22:54:11 +08:00 committed by Daniel Bevenius
parent 78ae094ed0
commit 230f1f2aa4

View File

@ -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;