Skip to content

Commit

Permalink
Update lib/internal/fs/utils.js
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël Zasso <[email protected]>
  • Loading branch information
bcoe and targos authored Jul 25, 2021
1 parent fb61bfe commit 5988d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ const validateCopyOptions = hideStackFrames((options) => {
validateBoolean(options.errorOnExist, 'options.errorOnExist');
validateBoolean(options.force, 'options.force');
validateBoolean(options.preserveTimestamps, 'options.preserveTimestamps');
if (options.filter) {
if (options.filter !== undefined) {
validateFunction(options.filter, 'options.filter');
}
return options;
Expand Down

0 comments on commit 5988d2c

Please sign in to comment.