remove comments/format
This commit is contained in:
@@ -614,9 +614,7 @@ function isLastPage(pageNumber)
|
||||
function getPageNumberForId(id) {
|
||||
const idx = entryList.indexOf(id);
|
||||
// should be impossible but jic
|
||||
if (idx === -1) {
|
||||
return -1; // or null, if you prefer
|
||||
}
|
||||
if (idx === -1) { return -1 }
|
||||
return Math.floor(idx / OPT.how_many) + 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user