Fix eslint rules (#5117)

* Fix semi linter rule

* Fix semi-spacing linter rule

* Fix no-undef-init linter rule

* Fix space-before-blocks linter rule
This commit is contained in:
Sergii Paryzhskyi
2016-10-25 21:34:47 +02:00
committed by Julian Lam
parent 727710fbd9
commit e515b791da
53 changed files with 132 additions and 139 deletions

View File

@@ -55,7 +55,7 @@ topicsController.get = function (req, res, callback) {
if (!res.locals.isAPI && (!req.params.slug || results.topic.slug !== tid + '/' + req.params.slug) && (results.topic.slug && results.topic.slug !== tid + '/')) {
var url = '/topic/' + results.topic.slug;
if (req.params.post_index){
if (req.params.post_index) {
url += '/' + req.params.post_index;
}
if (currentPage > 1) {