Skip to content

Commit

Permalink
fix: πŸ› allow _modeToNumber to be called w/ undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 6, 2019
1 parent 216a85f commit 07c0b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ function nullCheck(path, callback?) {
return true;
}

function _modeToNumber(mode: TMode, def?): number | undefined {
function _modeToNumber(mode: TMode | undefined, def?): number | undefined {
if (typeof mode === 'number') return mode;
if (typeof mode === 'string') return parseInt(mode, 8);
if (def) return modeToNumber(def);
Expand Down

0 comments on commit 07c0b7a

Please sign in to comment.