From f28c39524fd1c219cb649fee71fcb9077cc1c65a Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Jul 2019 13:50:45 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20allow=20`mkdtempBase`=20t?= =?UTF-8?q?o=20be=20called=20w/=20`undefined`=20for=20`encoding`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/volume.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/volume.ts b/src/volume.ts index 52a82679..5f84a59b 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -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);