1
0
mirror of https://github.com/jiahaog/Nativefier synced 2024-06-26 07:38:59 +02: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) {
// pre process app
var tmpobj = tmp.dirSync({unsafeCleanup: true});
const tmpPath = tmpobj.name;
var tmpObj = tmp.dirSync({unsafeCleanup: true});
const tmpPath = tmpObj.name;
async.waterfall([
callback => {
@ -36,7 +36,6 @@ function buildApp(options, callback) {
},
(appPath, callback) => {
tmpobj.removeCallback();
callback(null, appPath);
}
], callback);