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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
himself65 authored and codebytere committed Jul 8, 2020
1 parent bba41bf commit 05cbd8f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,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 @@ -1066,7 +1066,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 @@ -1093,7 +1093,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 @@ -1136,7 +1136,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 05cbd8f

Please sign in to comment.