Skip to content

Commit

Permalink
Update src/lib/sync-fs.js
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Kuestersteffen <[email protected]>
  • Loading branch information
sugat009 and jkuester authored Jan 25, 2024
1 parent 9ac25a8 commit f722e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/sync-fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function copy(from, to, { overwrite=true }={}) {
}

function isDirectoryEmpty(dir) {
return fs.readdirSync(dir).length > 0 ? false : true;
return !fs.readdirSync(dir).length;
}

module.exports = {
Expand Down

0 comments on commit f722e20

Please sign in to comment.