diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-03-20 17:54:11 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-28 09:37:37 +0300 |
commit | 230f1f2aa4aa2d5800214c4894d1c13a3f153dd0 (patch) | |
tree | 92640d05574b756fe2719b772e1dfdc98f2562e2 | |
parent | 78ae094ed005e7001713fc6aed857610c9bf56ce (diff) |
src: delete useless code in cares_wrap.cc
PR-URL: https://github.com/nodejs/node/pull/26815
Reviewed-By: Refael Ackermann <refack@gmail.com>
-rw-r--r-- | src/cares_wrap.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 683d9c9728b..aeb525b33e7 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; |