summaryrefslogtreecommitdiff
path: root/std/node/_fs/_fs_mkdtemp.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/_fs/_fs_mkdtemp.ts')
-rw-r--r--std/node/_fs/_fs_mkdtemp.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/node/_fs/_fs_mkdtemp.ts b/std/node/_fs/_fs_mkdtemp.ts
index a249f1911..226399aa4 100644
--- a/std/node/_fs/_fs_mkdtemp.ts
+++ b/std/node/_fs/_fs_mkdtemp.ts
@@ -7,7 +7,7 @@ import {
} from "../_errors.ts";
export type mkdtempCallback = (
- err: Error | undefined,
+ err: Error | null,
directory?: string,
) => void;
@@ -35,7 +35,7 @@ export function mkdtemp(
{ recursive: false, mode: 0o700 },
(err: Error | null | undefined) => {
if (err) callback(err);
- else callback(undefined, decode(path, encoding));
+ else callback(null, decode(path, encoding));
},
);
}