mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Adjust the yoda
ESLint rule to apply to inequalities as well
I happened to notice that some inequalities had the wrong order, and was surprised since I thought that the `yoda` rule should have caught that. However, reading http://eslint.org/docs/rules/yoda#options a bit more closely than previously, it's quite obvious that the `onlyEquality` option does *exactly* what its name suggests. Hence I think that it makes sense to adjust the options such that only ranges are allowed instead.
This commit is contained in:
parent
f0c45f0336
commit
a7c19d9cbb
6 changed files with 31 additions and 29 deletions
|
@ -1614,7 +1614,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
var type = xobj.dict.get('Subtype');
|
||||
assert(isName(type), 'XObject should have a Name subtype');
|
||||
|
||||
if ('Form' !== type.name) {
|
||||
if (type.name !== 'Form') {
|
||||
xobjsCache.key = name;
|
||||
xobjsCache.texts = null;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue