ESlint no-mixed-operators

This commit is contained in:
Peter Jaszkowiak
2017-02-18 01:51:11 -07:00
parent 2e031f3759
commit a5a3f3089a
22 changed files with 25 additions and 23 deletions

View File

@@ -113,7 +113,7 @@ topicsController.get = function (req, res, callback) {
currentPage = Math.max(1, Math.ceil(index / settings.postsPerPage));
}
var start = (currentPage - 1) * settings.postsPerPage + postIndex;
var start = ((currentPage - 1) * settings.postsPerPage) + postIndex;
var stop = start + settings.postsPerPage - 1;
topics.getTopicWithPosts(results.topic, set, req.uid, start, stop, reverse, next);