mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-28 04:19:01 +00:00
Use arrow function and remove console.log statement
This commit is contained in:
parent
0fe67234f2
commit
7d359a99fa
@ -26,15 +26,16 @@ function buildApp(options, callback) {
|
|||||||
const tmpPath = tmpobj.name;
|
const tmpPath = tmpobj.name;
|
||||||
|
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function (callback) {
|
callback => {
|
||||||
copyPlaceholderApp(options.dir, tmpPath, options.name, options.targetUrl, options.badge, options.width, options.height, callback);
|
copyPlaceholderApp(options.dir, tmpPath, options.name, options.targetUrl, options.badge, options.width, options.height, callback);
|
||||||
},
|
},
|
||||||
function (tempDir, callback) {
|
|
||||||
console.log('copied to ', tempDir);
|
(tempDir, callback) => {
|
||||||
options.dir = tempDir;
|
options.dir = tempDir;
|
||||||
packager(options, callback);
|
packager(options, callback);
|
||||||
},
|
},
|
||||||
function (appPath, callback) {
|
|
||||||
|
(appPath, callback) => {
|
||||||
tmpobj.removeCallback();
|
tmpobj.removeCallback();
|
||||||
callback(null, appPath);
|
callback(null, appPath);
|
||||||
}
|
}
|
||||||
@ -45,7 +46,7 @@ function buildApp(options, callback) {
|
|||||||
/**
|
/**
|
||||||
* @callback tempDirCallback
|
* @callback tempDirCallback
|
||||||
* @param error
|
* @param error
|
||||||
* @param [tempDirPath]
|
* @param {string} [tempDirPath]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -62,7 +63,7 @@ function buildApp(options, callback) {
|
|||||||
* @param {tempDirCallback} callback
|
* @param {tempDirCallback} callback
|
||||||
*/
|
*/
|
||||||
function copyPlaceholderApp(srcAppDir, tempDir, name, targetURL, badge, width, height, callback) {
|
function copyPlaceholderApp(srcAppDir, tempDir, name, targetURL, badge, width, height, callback) {
|
||||||
copy(srcAppDir, tempDir, function (error) {
|
copy(srcAppDir, tempDir, error => {
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user