mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +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
|
@ -558,8 +558,7 @@ class CFFParser {
|
|||
stackSize %= 2;
|
||||
validationCommand = CharstringValidationData[value];
|
||||
} else if (value === 10 || value === 29) {
|
||||
let subrsIndex;
|
||||
subrsIndex = value === 10 ? localSubrIndex : globalSubrIndex;
|
||||
const subrsIndex = value === 10 ? localSubrIndex : globalSubrIndex;
|
||||
if (!subrsIndex) {
|
||||
validationCommand = CharstringValidationData[value];
|
||||
warn("Missing subrsIndex for " + validationCommand.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue