Merge pull request #65 from PR0M3TH3AN/refactor/redundant-check-ops-8051921680686035210

Refactor ensureDir to remove redundant existence check
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-14 09:32:03 -05:00
commit 6f7098fcbb
1 file changed
+1 -3
+1 -3
View File
@@ -29,9 +29,7 @@ function getPaths(userRoot) {
}
function ensureDir(dir) {
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true });
}
fs.mkdirSync(dir, { recursive: true });
}
function transformContent(content) {