summaryrefslogtreecommitdiff
path: root/std/io/util.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/io/util.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
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, {