src: remove unused variables in node_util.cc
Currently two warnings are generated regarding unused variables. This commit removes the unused variables. PR-URL: https://github.com/nodejs/node/pull/24717 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
7b8058a39e
commit
171b8108df
@ -56,7 +56,6 @@ static void GetOwnNonIndexProperties(
|
||||
}
|
||||
|
||||
static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
|
||||
Environment* env = Environment::GetCurrent(args);
|
||||
// Return undefined if it's not a Promise.
|
||||
if (!args[0]->IsPromise())
|
||||
return;
|
||||
@ -75,7 +74,6 @@ static void GetPromiseDetails(const FunctionCallbackInfo<Value>& args) {
|
||||
}
|
||||
|
||||
static void GetProxyDetails(const FunctionCallbackInfo<Value>& args) {
|
||||
Environment* env = Environment::GetCurrent(args);
|
||||
// Return undefined if it's not a proxy.
|
||||
if (!args[0]->IsProxy())
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user