summaryrefslogtreecommitdiff
path: root/std/fs/move.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /std/fs/move.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'std/fs/move.ts')
-rw-r--r--std/fs/move.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/fs/move.ts b/std/fs/move.ts
index 6aeca29ea..421ca0771 100644
--- a/std/fs/move.ts
+++ b/std/fs/move.ts
@@ -10,13 +10,13 @@ interface MoveOptions {
export async function move(
src: string,
dest: string,
- { overwrite = false }: MoveOptions = {}
+ { overwrite = false }: MoveOptions = {},
): Promise<void> {
const srcStat = await Deno.stat(src);
if (srcStat.isDirectory && isSubdir(src, dest)) {
throw new Error(
- `Cannot move '${src}' to a subdirectory of itself, '${dest}'.`
+ `Cannot move '${src}' to a subdirectory of itself, '${dest}'.`,
);
}
@@ -39,13 +39,13 @@ export async function move(
export function moveSync(
src: string,
dest: string,
- { overwrite = false }: MoveOptions = {}
+ { overwrite = false }: MoveOptions = {},
): void {
const srcStat = Deno.statSync(src);
if (srcStat.isDirectory && isSubdir(src, dest)) {
throw new Error(
- `Cannot move '${src}' to a subdirectory of itself, '${dest}'.`
+ `Cannot move '${src}' to a subdirectory of itself, '${dest}'.`,
);
}