Skip to content
Permalink
Browse files

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 <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information...
danbev authored and BridgeAR committed Jan 6, 2019
1 parent 8e6175e commit 81924ffa4fc97f19da9b450828234c625c89b02b
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/node_task_queue.cc
@@ -90,7 +90,6 @@ void PromiseRejectCallback(PromiseRejectMessage message) {
static void SetPromiseRejectCallback(
const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

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

0 comments on commit 81924ff

Please sign in to comment.
You can’t perform that action at this time.