mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Fix var
conversions that ESLint could not do automatically
This mainly involves the `crypto_spec.js` file which declared most variables before their usage, which is not really consistent with the rest of the codebase. This also required reformatting some long arrays in that file because otherwise we would exceed the 80 character line limit. Overall, this makes the code more readable.
This commit is contained in:
parent
3e2bfb5819
commit
fe08ef4e39
4 changed files with 276 additions and 250 deletions
|
@ -38,7 +38,7 @@ describe("network", function () {
|
|||
|
||||
let len = 0,
|
||||
count = 0;
|
||||
var read = function () {
|
||||
const read = function () {
|
||||
return fullReader.read().then(function (result) {
|
||||
if (result.done) {
|
||||
return undefined;
|
||||
|
@ -101,7 +101,7 @@ describe("network", function () {
|
|||
|
||||
const result1 = { value: 0 },
|
||||
result2 = { value: 0 };
|
||||
var read = function (reader, lenResult) {
|
||||
const read = function (reader, lenResult) {
|
||||
return reader.read().then(function (result) {
|
||||
if (result.done) {
|
||||
return undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue