mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Fix the linting errors, from the Prettier auto-formatting, that ESLint --fix
couldn't handle
This patch makes the follow changes: - Remove no longer necessary inline `// eslint-disable-...` comments. - Fix `// eslint-disable-...` comments that Prettier moved down, thus causing new linting errors. - Concatenate strings which now fit on just one line. - Fix comments that are now too long. - Finally, and most importantly, adjust comments that Prettier moved down, since the new positions often is confusing or outright wrong.
This commit is contained in:
parent
de36b2aaba
commit
a63f7ad486
46 changed files with 179 additions and 219 deletions
|
@ -1098,19 +1098,19 @@ var AsciiHexStream = (function AsciiHexStreamClosure() {
|
|||
for (var i = 0, ii = bytes.length; i < ii; i++) {
|
||||
var ch = bytes[i],
|
||||
digit;
|
||||
if (ch >= 0x30 && ch <= 0x39) {
|
||||
// '0'-'9'
|
||||
if (ch >= /* '0' = */ 0x30 && ch <= /* '9' = */ 0x39) {
|
||||
digit = ch & 0x0f;
|
||||
} else if ((ch >= 0x41 && ch <= 0x46) || (ch >= 0x61 && ch <= 0x66)) {
|
||||
// 'A'-'Z', 'a'-'z'
|
||||
} else if (
|
||||
(ch >= /* 'A' = */ 0x41 && ch <= /* 'Z' = */ 0x46) ||
|
||||
(ch >= /* 'a' = */ 0x61 && ch <= /* 'z' = */ 0x66)
|
||||
) {
|
||||
digit = (ch & 0x0f) + 9;
|
||||
} else if (ch === 0x3e) {
|
||||
// '>'
|
||||
} else if (ch === /* '>' = */ 0x3e) {
|
||||
this.eof = true;
|
||||
break;
|
||||
} else {
|
||||
// probably whitespace
|
||||
continue; // ignoring
|
||||
// Probably whitespace, ignoring.
|
||||
continue;
|
||||
}
|
||||
if (firstDigit < 0) {
|
||||
firstDigit = digit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue