1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Enable the ESLint operator-assignment rule

This patch was generated automatically, using the `gulp lint --fix` command.

Please find additional details about the ESLint rule at https://eslint.org/docs/rules/operator-assignment
This commit is contained in:
Jonas Jenwald 2021-07-04 11:51:11 +02:00
parent de80590157
commit 901b24e8af
13 changed files with 35 additions and 36 deletions

View file

@ -936,7 +936,7 @@ const CFFParser = (function CFFParserClosure() {
}
raw = bytes.subarray(dataStart, dataEnd);
}
format = format & 0x7f;
format &= 0x7f;
return new CFFEncoding(predefined, format, encoding, raw);
}
@ -1552,7 +1552,7 @@ class CFFCompiler {
if (value >= -107 && value <= 107) {
code = [value + 139];
} else if (value >= 108 && value <= 1131) {
value = value - 108;
value -= 108;
code = [(value >> 8) + 247, value & 0xff];
} else if (value >= -1131 && value <= -108) {
value = -value - 108;