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 FileStorage = require("../../" + (config.storage || "./storage/file"));
var tasks; var tasks;
var paths;
nThen(function (w) { nThen(function (w) {
Logger.create(config, w(function (_log) { Logger.create(config, w(function (_log) {
config.log = _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 every task
list(env, function (err, paths) { list(env, function (err, paths) {
if (err) { if (err) {
@ -307,6 +307,7 @@ var migrate function (env, cb) {
}); });
return; return;
} }
task = _task;
})); }));
}).nThen(function (w) { }).nThen(function (w) {
if (bypass) { return; } if (bypass) { return; }
@ -323,17 +324,17 @@ var migrate function (env, cb) {
}).nThen(function (w) { }).nThen(function (w) {
if (bypass) { return; } if (bypass) { return; }
// remove // remove
remove(env, path, function (err) { remove(env, path, w(function (err) {
if (err) { if (err) {
env.log.error("TASK_MIGRATION_REMOVE", { env.log.error("TASK_MIGRATION_REMOVE", {
error: err, error: err,
path: path, path: path,
}); });
} }
}));
}); });
}); });
}); nt = nt.nThen(function () {
nt = nt.nThen(function (w) {
cb(); cb();
}); });
}, true); }, true);

Loading…
Cancel
Save