Skip to content

Commit 4c1f660

Browse files
committed
fixup! fs: improve error performance for fs.renameSync
1 parent f178040 commit 4c1f660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ static void RenameSync(const FunctionCallbackInfo<Value>& args) {
15721572
Environment* env = Environment::GetCurrent(args);
15731573
Isolate* isolate = env->isolate();
15741574

1575-
CHECK_GE(args.Length(), 2);
1575+
CHECK_EQ(args.Length(), 2);
15761576

15771577
BufferValue old_path(isolate, args[0]);
15781578
CHECK_NOT_NULL(*old_path);

0 commit comments

Comments
 (0)