mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Introduce even more modern JavaScript features in the code-base
After PR 12563 we're now free to use e.g. logical OR assignment, nullish coalescing, and optional chaining in the entire code-base.
This commit is contained in:
parent
a24d5b629e
commit
e8030752f3
10 changed files with 25 additions and 31 deletions
|
@ -477,11 +477,7 @@ class CCITTFaxDecoder {
|
|||
this.byteAlign = options.EncodedByteAlign || false;
|
||||
this.columns = options.Columns || 1728;
|
||||
this.rows = options.Rows || 0;
|
||||
let eoblock = options.EndOfBlock;
|
||||
if (eoblock === null || eoblock === undefined) {
|
||||
eoblock = true;
|
||||
}
|
||||
this.eoblock = eoblock;
|
||||
this.eoblock = options.EndOfBlock ?? true;
|
||||
this.black = options.BlackIs1 || false;
|
||||
|
||||
this.codingLine = new Uint32Array(this.columns + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue