actual lint compliance

pull/1/head
ansuz 6 years ago
parent 39e725c5c9
commit aa9a27634a

@ -10,7 +10,6 @@ var config = require("../../lib/load-config");
var FileStorage = require("../../" + (config.storage || "./storage/file"));
var tasks;
var paths;
nThen(function (w) {
Logger.create(config, w(function (_log) {
config.log = _log;

@ -285,7 +285,7 @@ var runAll = function (env, cb) {
});
};
var migrate function (env, cb) {
var migrate = function (env, cb) {
// list every task
list(env, function (err, paths) {
if (err) {
@ -307,6 +307,7 @@ var migrate function (env, cb) {
});
return;
}
task = _task;
}));
}).nThen(function (w) {
if (bypass) { return; }
@ -323,17 +324,17 @@ var migrate function (env, cb) {
}).nThen(function (w) {
if (bypass) { return; }
// remove
remove(env, path, function (err) {
remove(env, path, w(function (err) {
if (err) {
env.log.error("TASK_MIGRATION_REMOVE", {
error: err,
path: path,
});
}
});
}));
});
});
nt = nt.nThen(function (w) {
nt = nt.nThen(function () {
cb();
});
}, true);

Loading…
Cancel
Save