mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28: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:
parent
1c87305d39
commit
eb4a948506
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user