Skip to content

Commit 497a08a

Browse files
danbevaddaleax
authored andcommitted
src: remove unused isolate variable
Currently the following compiler warning is generated: ../src/node_task_queue.cc:93:12: warning: unused variable 'isolate' [-Wunused-variable] Isolate* isolate = env->isolate(); ^ 1 warning generated. This commit removes the unused variable. PR-URL: #25368 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent d6b4cb3 commit 497a08a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/node_task_queue.cc

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ void PromiseRejectCallback(PromiseRejectMessage message) {
9090
static void SetPromiseRejectCallback(
9191
const FunctionCallbackInfo<Value>& args) {
9292
Environment* env = Environment::GetCurrent(args);
93-
Isolate* isolate = env->isolate();
9493

9594
CHECK(args[0]->IsFunction());
9695
env->set_promise_reject_callback(args[0].As<Function>());

0 commit comments

Comments
 (0)