Skip to content

Commit

Permalink
Remove unnecessary check from PDFLinkService.goToDestination (PR 17…
Browse files Browse the repository at this point in the history
…984 follow-up)

After the changes in PR 17984 this code can no longer be reached, since the destination is now validated on the worker-thread.
  • Loading branch information
Snuffleupagus committed Apr 26, 2024
1 parent 8f6ac5b commit e3361a9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions web/pdf_link_service.js
Expand Up @@ -217,11 +217,6 @@ class PDFLinkService {
}
} else if (Number.isInteger(destRef)) {
pageNumber = destRef + 1;
} else {
console.error(
`goToDestination: "${destRef}" is not a valid destination reference, for dest="${dest}".`
);
return;
}
if (!pageNumber || pageNumber < 1 || pageNumber > this.pagesCount) {
console.error(
Expand Down

0 comments on commit e3361a9

Please sign in to comment.