mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
linting client side modules
This commit is contained in:
@@ -106,7 +106,7 @@ define('forum/topic', [
|
||||
function getPostIndex() {
|
||||
var parts = window.location.pathname.split('/');
|
||||
if (parts[parts.length - 1] && utils.isNumber(parts[parts.length - 1])) {
|
||||
return parseInt(parts[parts.length - 1], 10)
|
||||
return parseInt(parts[parts.length - 1], 10);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user