Skip to content

Commit

Permalink
Fix wrong variables
Browse files Browse the repository at this point in the history
  • Loading branch information
thoqbk committed Sep 25, 2022
1 parent d5455c6 commit 8f8cabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/cp/cp-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ function copyDir(src, dest, opts) {
const destItem = join(dest, name);
if (opts.filter && !opts.filter(srcItem, destItem)) continue;
const { destStat } = checkPathsSync(srcItem, destItem, opts);
getStats(destStat, src, dest, opts);
getStats(destStat, srcItem, destItem, opts);
}
} finally {
dir.closeSync();
Expand Down

0 comments on commit 8f8cabe

Please sign in to comment.