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 Jun 30, 2020
1 parent b2b67de commit 30e2d4c
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 @@ -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 30e2d4c

Please sign in to comment.