Skip to content

Commit 150964d

Browse files
committed
Remove unnecessary check from PDFLinkService.goToDestination (PR 17984 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.
1 parent f6cd039 commit 150964d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

web/pdf_link_service.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,6 @@ class PDFLinkService {
171171
}
172172
} else if (Number.isInteger(destRef)) {
173173
pageNumber = destRef + 1;
174-
} else {
175-
console.error(
176-
`goToDestination: "${destRef}" is not a valid destination reference, for dest="${dest}".`
177-
);
178-
return;
179174
}
180175
if (!pageNumber || pageNumber < 1 || pageNumber > this.pagesCount) {
181176
console.error(

0 commit comments

Comments
 (0)