From 296523a69878ca9a0a89c116278bc94100e5dde2 Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Sun, 21 Jan 2018 10:47:02 -0500 Subject: [PATCH] src: remove unnecessary async hooks check PR-URL: https://github.com/nodejs/node/pull/18291 Reviewed-By: Ben Noordhuis Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- src/node.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/node.cc b/src/node.cc index bb6edc5ed9657c..ff98726ebbea0b 100644 --- a/src/node.cc +++ b/src/node.cc @@ -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 process = env_->process_object(); if (env_->tick_callback_function()->Call(process, 0, nullptr).IsEmpty()) {