From 35853c3ddf812d9cb90714bf4e8f7c3419359751 Mon Sep 17 00:00:00 2001 From: Kristofer Baxter Date: Tue, 7 Jan 2020 19:29:46 -0800 Subject: [PATCH] Remove extra path empty string --- src/temp-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/temp-file.ts b/src/temp-file.ts index 64fdca89..4b43be8e 100644 --- a/src/temp-file.ts +++ b/src/temp-file.ts @@ -20,7 +20,7 @@ import { v4 } from 'uuid'; import { promises } from 'fs'; export async function writeTempFile(content: string): Promise { - const path: string = join(tmpdir(), v4(), ''); + const path: string = join(tmpdir(), v4()); await promises.mkdir(dirname(path), { recursive: true }); await promises.writeFile(path, content, 'utf-8');