mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Enable the ESLint no-unneeded-ternary
rule
This rule is already enabled in mozilla-central, see https://searchfox.org/mozilla-central/rev/b04e3a28a2ef4dbf957018dbbdc1840d62fdbc32/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js#247-248 Please see https://eslint.org/docs/rules/no-unneeded-ternary for additional information.
This commit is contained in:
parent
4729fdc0e9
commit
ecd3de83f8
2 changed files with 2 additions and 1 deletions
|
@ -768,7 +768,7 @@ class BaseViewer {
|
|||
height = 0,
|
||||
widthScale,
|
||||
heightScale;
|
||||
const changeOrientation = pageView.rotation % 180 === 0 ? false : true;
|
||||
const changeOrientation = pageView.rotation % 180 !== 0;
|
||||
const pageWidth =
|
||||
(changeOrientation ? pageView.height : pageView.width) /
|
||||
pageView.scale /
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue