Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: πŸ› refactor #mkdtempBase to be compatible w/ strictNullChecks
  • Loading branch information
G-Rath committed Jul 7, 2019
1 parent fadbd77 commit d935b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -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;
}
Expand Down

0 comments on commit d935b3b

Please sign in to comment.