1
0
Fork 0
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:
Tim van der Meij 2020-10-25 16:03:11 +01:00
parent 3e2bfb5819
commit fe08ef4e39
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
4 changed files with 276 additions and 250 deletions

View file

@ -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;