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 targos committed Mar 30, 2019
1 parent 6bfb17f commit 0427354
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 0427354

Please sign in to comment.