Update eslint, fix lint issues

This commit is contained in:
Berkeley Martinez
2016-03-02 20:54:14 -08:00
parent c50510db71
commit 74592e72b4
30 changed files with 141 additions and 174 deletions

View File

@@ -120,6 +120,7 @@ function shouldShowNew(element, block) {
}, 0);
return newCount / block.length * 100 === 100;
}
return null;
}
// meant to be used with a filter method
@@ -516,7 +517,7 @@ module.exports = function(app) {
if (data.id) {
res.cookie('currentChallengeId', data.id);
}
res.render(view, data);
return res.render(view, data);
},
next,
function() {}
@@ -585,7 +586,7 @@ module.exports = function(app) {
alreadyCompleted
});
}
res.sendStatus(200);
return res.sendStatus(200);
}
);
}
@@ -652,7 +653,7 @@ module.exports = function(app) {
user.progressTimestamps.length + 1
});
}
res.status(200).send(true);
return res.status(200).send(true);
})
.subscribe(() => {}, next);
}