mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
Lint fix
This commit is contained in:
@@ -239,7 +239,7 @@ define('forum/topic', dependencies, function(pagination, infinitescroll, threadT
|
|||||||
slug = parts[2];
|
slug = parts[2];
|
||||||
var newUrl = 'topic/' + topicId + '/' + (slug ? slug : '');
|
var newUrl = 'topic/' + topicId + '/' + (slug ? slug : '');
|
||||||
if (postIndex > 0) {
|
if (postIndex > 0) {
|
||||||
newUrl += '/' + (postIndex + 1);
|
newUrl += '/' + (postIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newUrl !== currentUrl) {
|
if (newUrl !== currentUrl) {
|
||||||
|
|||||||
@@ -404,7 +404,7 @@ SocketTopics.follow = function(socket, tid, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
SocketTopics.loadMore = function(socket, data, callback) {
|
SocketTopics.loadMore = function(socket, data, callback) {
|
||||||
if(!data || !data.tid || !(parseInt(data.after, 10) >= 0)) {
|
if(!data || !data.tid || (parseInt(data.after, 10) < 0)) {
|
||||||
return callback(new Error('[[error:invalid-data]]'));
|
return callback(new Error('[[error:invalid-data]]'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var db = require('./database'),
|
var db = require('./database'),
|
||||||
async = require('async'),
|
async = require('async'),
|
||||||
|
|||||||
Reference in New Issue
Block a user