summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_mkdir.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_fs/_fs_mkdir.ts')
-rw-r--r--std/node/_fs/_fs_mkdir.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/node/_fs/_fs_mkdir.ts b/std/node/_fs/_fs_mkdir.ts
index 3a060ee76..94cc24a42 100644
--- a/std/node/_fs/_fs_mkdir.ts
+++ b/std/node/_fs/_fs_mkdir.ts
@@ -39,10 +39,9 @@ export function mkdir(
Deno.mkdir(path, { recursive, mode })
.then(() => {
if (typeof callback === "function") {
- callback();
+ callback(null);
}
- })
- .catch((err) => {
+ }, (err) => {
if (typeof callback === "function") {
callback(err);
}