Skip to content

Commit 296523a

Browse files
apapirovskiaddaleax
authored andcommitted
src: remove unnecessary async hooks check
PR-URL: #18291 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5ddef29 commit 296523a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/node.cc

-5
Original file line numberDiff line numberDiff line change
@@ -1309,11 +1309,6 @@ void InternalCallbackScope::Close() {
13091309
return;
13101310
}
13111311

1312-
if (env_->async_hooks()->fields()[AsyncHooks::kTotals]) {
1313-
CHECK_EQ(env_->execution_async_id(), 0);
1314-
CHECK_EQ(env_->trigger_async_id(), 0);
1315-
}
1316-
13171312
Local<Object> process = env_->process_object();
13181313

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

0 commit comments

Comments
 (0)