src: fix -Wunused-but-set-variable warnings
PR-URL: https://github.com/nodejs/node/pull/18205 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
ea7400c1bd
commit
5f6478759b
@ -516,7 +516,6 @@ static void InternalModuleStat(const FunctionCallbackInfo<Value>& args) {
|
||||
|
||||
static void Stat(const FunctionCallbackInfo<Value>& args) {
|
||||
Environment* env = Environment::GetCurrent(args);
|
||||
Local<Context> context = env->context();
|
||||
|
||||
CHECK_GE(args.Length(), 1);
|
||||
|
||||
@ -540,7 +539,6 @@ static void Stat(const FunctionCallbackInfo<Value>& args) {
|
||||
|
||||
static void LStat(const FunctionCallbackInfo<Value>& args) {
|
||||
Environment* env = Environment::GetCurrent(args);
|
||||
Local<Context> context = env->context();
|
||||
|
||||
CHECK_GE(args.Length(), 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user