Skip to content

Commit

Permalink
fixup! fs: improve error performance for fs.renameSync
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Sep 25, 2023
1 parent f178040 commit 4c1f660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,7 @@ static void RenameSync(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
Isolate* isolate = env->isolate();

CHECK_GE(args.Length(), 2);
CHECK_EQ(args.Length(), 2);

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

0 comments on commit 4c1f660

Please sign in to comment.