mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Enable the no-lonely-if
ESLint rule
These changes were mostly done automatically, using `gulp lint --fix`, and only a few spots with comments needed manual tweaking; please see https://eslint.org/docs/latest/rules/no-lonely-if
This commit is contained in:
parent
abb24f82fb
commit
c018070e80
15 changed files with 108 additions and 147 deletions
|
@ -211,14 +211,12 @@ function compileGlyf(code, cmds, font) {
|
|||
arg2 = getUint16(code, i + 2);
|
||||
}
|
||||
i += 4;
|
||||
} else if (flags & 0x02) {
|
||||
arg1 = getInt8(code, i++);
|
||||
arg2 = getInt8(code, i++);
|
||||
} else {
|
||||
if (flags & 0x02) {
|
||||
arg1 = getInt8(code, i++);
|
||||
arg2 = getInt8(code, i++);
|
||||
} else {
|
||||
arg1 = code[i++];
|
||||
arg2 = code[i++];
|
||||
}
|
||||
arg1 = code[i++];
|
||||
arg2 = code[i++];
|
||||
}
|
||||
if (flags & 0x02) {
|
||||
x = arg1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue