mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
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:
committed by
Julian Lam
parent
727710fbd9
commit
e515b791da
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user