mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - remove unnecessary check in the handleBreak
function (PR 13687 follow-up)
With the changes in PR 13687 we're now checking if `target` is defined *twice* in a row, which shouldn't be necessary :-) (I noticed this when glancing at the unofficial LGTM results; maybe we should re-evalute the decision to not integrate that into the CI.)
This commit is contained in:
parent
fbd2f28618
commit
df6107714a
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ function handleBreak(node) {
|
|||
if (!target) {
|
||||
return false;
|
||||
}
|
||||
target = target ? target[0] : target;
|
||||
target = target[0];
|
||||
}
|
||||
|
||||
const { currentPageArea, currentContentArea } = root[$extra];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue