Skip to content

Commit

Permalink
Remove extra path empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferbaxter committed Jan 8, 2020
1 parent e430c7e commit 35853c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/temp-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { v4 } from 'uuid';
import { promises } from 'fs';

export async function writeTempFile(content: string): Promise<string> {
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');

Expand Down

0 comments on commit 35853c3

Please sign in to comment.