Skip to content

Commit

Permalink
src: delete useless code in cares_wrap.cc
Browse files Browse the repository at this point in the history
PR-URL: #26815
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
gengjiawen authored and danbev committed Mar 28, 2019
1 parent 78ae094 commit 230f1f2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cares_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 230f1f2

Please sign in to comment.