Skip to content

Commit

Permalink
fix: πŸ› allow flagsToNumber 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 27a4dad commit dbfc754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -193,7 +193,7 @@ export type TFlagsCopy =
| typeof constants.COPYFILE_FICLONE
| typeof constants.COPYFILE_FICLONE_FORCE;

export function flagsToNumber(flags: TFlags): number {
export function flagsToNumber(flags: TFlags | undefined): number {
if (typeof flags === 'number') return flags;

if (typeof flags === 'string') {
Expand Down

0 comments on commit dbfc754

Please sign in to comment.