From d935b3b3240c2328207ce01885bd4fcc8b5310db Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sun, 7 Jul 2019 16:19:34 +1200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20refactor=20`#mkdtempBase`?= =?UTF-8?q?=20to=20be=20compatible=20w/=20`strictNullChecks`?= 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 667e3d88..2c5ce3eb 100644 --- a/src/volume.ts +++ b/src/volume.ts @@ -1872,7 +1872,7 @@ export class Volume { return strToEncoding(filename, encoding); } catch (err) { if (err.code === EEXIST) { - if (retry > 1) this.mkdtempBase(prefix, encoding, retry - 1); + if (retry > 1) return this.mkdtempBase(prefix, encoding, retry - 1); else throw Error('Could not create temp dir.'); } else throw err; }