Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor committed Jan 13, 2024
1 parent fbe6dca commit 79593d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/anime/zoro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,11 @@ class Zoro extends AnimeParser {

const pagination = $('ul.pagination');
res.currentPage = parseInt(pagination.find('.page-item.active')?.text());
let nextPage = pagination.find('a[title=Next]')?.attr('href');
const nextPage = pagination.find('a[title=Next]')?.attr('href');
if (nextPage != undefined || nextPage != '') {
res.hasNextPage = true;
}
let totalPages = pagination.find('a[title=Last]').attr('href')?.split('=').pop();
const totalPages = pagination.find('a[title=Last]').attr('href')?.split('=').pop();
if (totalPages === undefined || totalPages === '') {
res.totalPages = res.currentPage;
} else {
Expand Down

0 comments on commit 79593d0

Please sign in to comment.