Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
src: delete useless code in cares_wrap.cc
  • Loading branch information
gengjiawen committed Mar 20, 2019
commit 3a885a8c9e07923647527022470cef8299f0f60c
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;
}

Comment thread
refack marked this conversation as resolved.
task->channel = channel;
task->sock = sock;

Expand Down