Skip to content

Commit

Permalink
src: remove unnecessary async hooks check
Browse files Browse the repository at this point in the history
PR-URL: #18291
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
apapirovski authored and addaleax committed Feb 27, 2018
1 parent 5ddef29 commit 296523a
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 @@ -1309,11 +1309,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 296523a

Please sign in to comment.