summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_realpath.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_fs/_fs_realpath.ts')
-rw-r--r--std/node/_fs/_fs_realpath.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/std/node/_fs/_fs_realpath.ts b/std/node/_fs/_fs_realpath.ts
index 586a87cfc..95e699d65 100644
--- a/std/node/_fs/_fs_realpath.ts
+++ b/std/node/_fs/_fs_realpath.ts
@@ -12,9 +12,10 @@ export function realpath(
if (!callback) {
throw new Error("No callback function supplied");
}
- Deno.realPath(path)
- .then((path) => callback!(null, path))
- .catch((err) => callback!(err));
+ Deno.realPath(path).then(
+ (path) => callback!(null, path),
+ (err) => callback!(err),
+ );
}
export function realpathSync(path: string): string {