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,10 +1,10 @@
import i18n from '../i18n';
import _ from 'lodash';
module.exports = function (user, req, cb) {
module.exports = function(user, req, cb) {
var ref, task;
if (!(task = user.tasks[(ref = req.params) !== null ? ref.id : void 0])) {
return typeof cb === 'function' ? cb({
if (!(task = user.tasks[(ref = req.params) != null ? ref.id : void 0])) {
return typeof cb === "function" ? cb({
code: 404,
message: i18n.t('messageTaskNotFound', req.language)
}) : void 0;
@@ -13,8 +13,8 @@ module.exports = function (user, req, cb) {
if (req.body.checklist) {
task.checklist = req.body.checklist;
}
if (typeof task.markModified === 'function') {
if (typeof task.markModified === "function") {
task.markModified('tags');
}
return typeof cb === 'function' ? cb(null, task) : void 0;
return typeof cb === "function" ? cb(null, task) : void 0;
};