2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00

Remove unnecessary statement to delete temporary files as they are already cleared if the keep parameter is not passed to tmp.dirSync

This commit is contained in:
Jia Hao 2016-01-19 11:58:26 +08:00
parent 1c87305d39
commit eb4a948506

View File

@ -22,8 +22,8 @@ const copy = ncp.ncp;
function buildApp(options, callback) { function buildApp(options, callback) {
// pre process app // pre process app
var tmpobj = tmp.dirSync({unsafeCleanup: true}); var tmpObj = tmp.dirSync({unsafeCleanup: true});
const tmpPath = tmpobj.name; const tmpPath = tmpObj.name;
async.waterfall([ async.waterfall([
callback => { callback => {
@ -36,7 +36,6 @@ function buildApp(options, callback) {
}, },
(appPath, callback) => { (appPath, callback) => {
tmpobj.removeCallback();
callback(null, appPath); callback(null, appPath);
} }
], callback); ], callback);