mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Fix remaining linting errors, from enabling the prefer-const
ESLint rule globally
This covers cases that the `--fix` command couldn't deal with, and in a few cases (notably `src/core/jbig2.js`) the code was changed to use block-scoped variables instead.
This commit is contained in:
parent
9e262ae7fa
commit
83bdb525a4
10 changed files with 76 additions and 109 deletions
|
@ -240,8 +240,8 @@ class CMap {
|
|||
}
|
||||
|
||||
mapBfRangeToArray(low, high, array) {
|
||||
let i = 0,
|
||||
ii = array.length;
|
||||
const ii = array.length;
|
||||
let i = 0;
|
||||
while (low <= high && i < ii) {
|
||||
this._map[low] = array[i++];
|
||||
++low;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue