From cde4dbb35132848ffece59ef9cfaccff32347124 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 14 Jul 2020 15:24:17 -0400 Subject: Use dprint for internal formatting (#6682) --- std/io/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/io/util.ts') 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, { -- cgit v1.2.3