summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_link.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/node/_fs/_fs_link.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
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);