mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +02:00
Additional *manual* unicorn/prefer-ternary
changes
Not all cases could be automatically fixed, and the changes also triggered a number of `prefer-const` errors that needed to be handled manually.
This commit is contained in:
parent
674e7ee381
commit
c0fe96b8fe
13 changed files with 20 additions and 55 deletions
|
@ -224,8 +224,7 @@ function getXfaFontWidths(name) {
|
|||
}
|
||||
|
||||
const { baseWidths, baseMapping, factors } = info;
|
||||
let rescaledBaseWidths;
|
||||
rescaledBaseWidths = !factors
|
||||
const rescaledBaseWidths = !factors
|
||||
? baseWidths
|
||||
: baseWidths.map((w, i) => w * factors[i]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue