remove all changes from eslint --fix

This commit is contained in:
Matteo Pagliazzi
2016-03-08 17:45:14 +01:00
parent eeebe4c342
commit 5a2daabada
37 changed files with 224 additions and 223 deletions

View File

@@ -1,17 +1,17 @@
import i18n from '../i18n';
module.exports = function (user, req, cb) {
module.exports = function(user, req, cb) {
var i, ref, task;
task = user.tasks[(ref = req.params) !== null ? ref.id : void 0];
task = user.tasks[(ref = req.params) != null ? ref.id : void 0];
if (!task) {
return typeof cb === 'function' ? cb({
return typeof cb === "function" ? cb({
code: 404,
message: i18n.t('messageTaskNotFound', req.language)
}) : void 0;
}
i = user[task.type + 's'].indexOf(task);
i = user[task.type + "s"].indexOf(task);
if (~i) {
user[task.type + 's'].splice(i, 1);
user[task.type + "s"].splice(i, 1);
}
return typeof cb === 'function' ? cb(null, {}) : void 0;
return typeof cb === "function" ? cb(null, {}) : void 0;
};