Skip to content

Commit

Permalink
Change NaN handling to satisfy DeepScan
Browse files Browse the repository at this point in the history
  • Loading branch information
rachasakr committed Jan 16, 2024
1 parent a76358e commit 67d3877
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/v2/parliament/section77.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ module.exports = async (ctx) => {
const maxPageElem = $('#pagination-more_new a[id]:last-child');

if (maxPageElem.length) {
pageCnt = parseInt(maxPageElem.attr('id') ?? '1') ?? 1;
if (isNaN(pageCnt)) {
pageCnt = 1;
}
pageCnt = parseInt(maxPageElem.attr('id') ?? '1') || 1;
}

const actList = await Promise.all(
Expand Down

0 comments on commit 67d3877

Please sign in to comment.