mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +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
|
@ -793,8 +793,7 @@ class PartialEvaluator {
|
|||
);
|
||||
|
||||
if (cacheKey && imageRef && cacheGlobally) {
|
||||
let length = 0;
|
||||
length = imgData.bitmap
|
||||
const length = imgData.bitmap
|
||||
? imgData.width * imgData.height * 4
|
||||
: imgData.data.length;
|
||||
this.globalImageCache.addByteSize(imageRef, length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue