Skip to content

Commit f14f58d

Browse files
Remove check on file
1 parent 5b01aff commit f14f58d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

node/task.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,8 @@ export function mv(source: string, dest: string, options?: string, continueOnErr
10271027
throw new Error(loc('LIB_DestinationNotExist', dest));
10281028
}
10291029

1030-
if (fs.existsSync(dest)) {
1031-
if (isNoClobber && fs.statSync(dest).isFile()) {
1032-
return;
1033-
}
1030+
if (fs.existsSync(dest) && isNoClobber) {
1031+
return;
10341032
}
10351033

10361034
fs.renameSync(source, dest);

0 commit comments

Comments
 (0)