mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 15:47:57 +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
|
@ -353,11 +353,8 @@ function bidi(str, startLevel = -1, vertical = false) {
|
|||
} else if (t === "AN" || t === "EN") {
|
||||
levels[i] += 2;
|
||||
}
|
||||
} else {
|
||||
// isOdd
|
||||
if (t === "L" || t === "AN" || t === "EN") {
|
||||
levels[i] += 1;
|
||||
}
|
||||
} else if (/* isOdd && */ t === "L" || t === "AN" || t === "EN") {
|
||||
levels[i] += 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue