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:
parent
1c87305d39
commit
eb4a948506
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user