Skip to content

Commit

Permalink
fix: πŸ› refactor #copyFileSync to be compatible w/ strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 7, 2019
1 parent d935b3b commit 40f8337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume.ts
Expand Up @@ -1312,7 +1312,7 @@ export class Volume {
const srcFilename = pathToFilename(src);
const destFilename = pathToFilename(dest);

return this.copyFileBase(srcFilename, destFilename, flags | 0);
return this.copyFileBase(srcFilename, destFilename, (flags || 0) | 0);
}

copyFile(src: TFilePath, dest: TFilePath, callback: TCallback<void>);
Expand Down

0 comments on commit 40f8337

Please sign in to comment.