summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_link.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_fs/_fs_link.ts')
-rw-r--r--std/node/_fs/_fs_link.ts14
1 files changed, 8 insertions, 6 deletions
diff --git a/std/node/_fs/_fs_link.ts b/std/node/_fs/_fs_link.ts
index df08e13b1..42ca3de89 100644
--- a/std/node/_fs/_fs_link.ts
+++ b/std/node/_fs/_fs_link.ts
@@ -10,10 +10,11 @@ import { fromFileUrl } from "../path.ts";
export function link(
existingPath: string | URL,
newPath: string | URL,
- callback: CallbackWithError
+ callback: CallbackWithError,
): void {
- existingPath =
- existingPath instanceof URL ? fromFileUrl(existingPath) : existingPath;
+ existingPath = existingPath instanceof URL
+ ? fromFileUrl(existingPath)
+ : existingPath;
newPath = newPath instanceof URL ? fromFileUrl(newPath) : newPath;
Deno.link(existingPath, newPath)
@@ -27,10 +28,11 @@ export function link(
*/
export function linkSync(
existingPath: string | URL,
- newPath: string | URL
+ newPath: string | URL,
): void {
- existingPath =
- existingPath instanceof URL ? fromFileUrl(existingPath) : existingPath;
+ existingPath = existingPath instanceof URL
+ ? fromFileUrl(existingPath)
+ : existingPath;
newPath = newPath instanceof URL ? fromFileUrl(newPath) : newPath;
Deno.linkSync(existingPath, newPath);