summaryrefslogtreecommitdiff
path: root/std/io/util.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/io/util.ts')
-rw-r--r--std/io/util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/io/util.ts b/std/io/util.ts
index f4b7bf8bb..0055d7094 100644
--- a/std/io/util.ts
+++ b/std/io/util.ts
@@ -13,11 +13,11 @@ export async function tempFile(
opts: {
prefix?: string;
postfix?: string;
- } = { prefix: "", postfix: "" }
+ } = { prefix: "", postfix: "" },
): Promise<{ file: Deno.File; filepath: string }> {
const r = Math.floor(Math.random() * 1000000);
const filepath = path.resolve(
- `${dir}/${opts.prefix || ""}${r}${opts.postfix || ""}`
+ `${dir}/${opts.prefix || ""}${r}${opts.postfix || ""}`,
);
await Deno.mkdir(path.dirname(filepath), { recursive: true });
const file = await Deno.open(filepath, {