Skip to content

Commit

Permalink
src: remove unnecessary async hooks check
Browse files Browse the repository at this point in the history
PR-URL: nodejs#18291
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
apapirovski committed Jan 29, 2018
1 parent 7d3a302 commit fdf107a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1042,11 +1042,6 @@ void InternalCallbackScope::Close() {
return;
}

if (env_->async_hooks()->fields()[AsyncHooks::kTotals]) {
CHECK_EQ(env_->execution_async_id(), 0);
CHECK_EQ(env_->trigger_async_id(), 0);
}

Local<Object> process = env_->process_object();

if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {
Expand Down

0 comments on commit fdf107a

Please sign in to comment.