Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/phonegap-build/create/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ module.exports = {
// remove zip directory if empty
exists = fs.existsSync(basepath);
if (exists) {
fs.rmdir(basepath);
fs.rmdir(basepath, function () {});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the sync function is used above in fs.existsSync, you might want to use fs.rmdirSync instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good point!

}
}
};