Skip to content

Commit

Permalink
src: use const in constant args.Length()
Browse files Browse the repository at this point in the history
PR-URL: #33555
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
himself65 authored and codebytere committed Jun 18, 2020
1 parent 8ed25ed commit a5e860c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node_file.cc
Expand Up @@ -1056,7 +1056,7 @@ static void Symlink(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

int argc = args.Length();
const int argc = args.Length();
CHECK_GE(argc, 4);

BufferValue target(isolate, args[0]);
Expand Down Expand Up @@ -1085,7 +1085,7 @@ static void Link(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

int argc = args.Length();
const int argc = args.Length();
CHECK_GE(argc, 3);

BufferValue src(isolate, args[0]);
Expand All @@ -1112,7 +1112,7 @@ static void ReadLink(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

int argc = args.Length();
const int argc = args.Length();
CHECK_GE(argc, 3);

BufferValue path(isolate, args[0]);
Expand Down Expand Up @@ -1155,7 +1155,7 @@ static void Rename(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

int argc = args.Length();
const int argc = args.Length();
CHECK_GE(argc, 3);

BufferValue old_path(isolate, args[0]);
Expand Down

0 comments on commit a5e860c

Please sign in to comment.