Skip to content

Commit

Permalink
fix: πŸ› allow mkdtempBase to be called w/ undefined for encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 7, 2019
1 parent 166935d commit f28c395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -1863,7 +1863,7 @@ export class Volume {
this.mkdir(path, { mode, recursive: true }, callback);
}

private mkdtempBase(prefix: string, encoding: TEncodingExtended, retry: number = 5): TDataOut {
private mkdtempBase(prefix: string, encoding?: TEncodingExtended, retry: number = 5): TDataOut {
const filename = prefix + this.genRndStr();
try {
this.mkdirBase(filename, MODE.DIR);
Expand Down

0 comments on commit f28c395

Please sign in to comment.