mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
ESlint operator-assignment, block-scoped-var
This commit is contained in:
@@ -26,7 +26,8 @@ pagination.create = function (currentPage, pageCount, queryObj) {
|
||||
if (startPage > pageCount - 5) {
|
||||
startPage -= 2 - (pageCount - currentPage);
|
||||
}
|
||||
for (var i = 0; i < 5; i += 1) {
|
||||
var i;
|
||||
for (i = 0; i < 5; i += 1) {
|
||||
pagesToShow.push(startPage + i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user